[xiph-cvs] cvs commit: icecast/src stats.c

Jack Moffitt jack at xiph.org
Fri Apr 5 08:33:36 PST 2002



jack        02/04/05 08:33:36

  Modified:    src      stats.c
  Log:
  Oddsock finally found the win32 crash bug.  _event_listeners wasn't being
  initialized (the first time it was NULL).  After the server is restarted
  it retained a pointer to freed memory.  We should have been initializing
  this anyway.

Revision  Changes    Path
1.11      +2 -0      icecast/src/stats.c

Index: stats.c
===================================================================
RCS file: /usr/local/cvsroot/icecast/src/stats.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- stats.c	2002/02/14 00:41:57	1.10
+++ stats.c	2002/04/05 16:33:35	1.11
@@ -59,6 +59,8 @@
 
 void stats_initialize()
 {
+	_event_listeners = NULL;
+
         /* set up global struct */
         _stats.global_tree = avl_tree_new(_compare_stats, NULL);
         _stats.source_tree = avl_tree_new(_compare_source_stats, NULL);

<p><p><p>--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the commits mailing list