(Minor): Do some sanity checking....
authorwmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 25 Mar 2010 19:05:44 +0000 (19:05 +0000)
committerwmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 25 Mar 2010 19:05:44 +0000 (19:05 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32278 f5534014-38df-0310-8fa8-9805f1628bb7

epan/stream.c

index 120965ebb8b8d541ad678a78285409b3eadf3a93..8bf4a23b76d347a4e3dd9f8574cb4d726dd35d1e 100644 (file)
@@ -129,6 +129,7 @@ static void cleanup_stream_hash( void ) {
 
 /* init function, call from stream_init() */
 static void init_stream_hash( void ) {
+    g_assert(stream_hash==NULL);
     stream_hash = g_hash_table_new(stream_hash_func,
                                    stream_compare_func);
 }
@@ -269,6 +270,7 @@ static void cleanup_fragment_hash( void ) {
 
 /* init function, call from stream_init() */
 static void init_fragment_hash( void ) {
+    g_assert(fragment_hash==NULL);
     fragment_hash = g_hash_table_new(fragment_hash_func,
                                      fragment_compare_func);
 }