[xiph-commits] r3869 - liboggplay/trunk/src/liboggplay

oggk at svn.annodex.net oggk at svn.annodex.net
Mon Mar 2 12:48:34 PST 2009


Author: oggk
Date: 2009-03-02 12:48:33 -0800 (Mon, 02 Mar 2009)
New Revision: 3869

Modified:
   liboggplay/trunk/src/liboggplay/oggplay_buffer.c
Log:
avoid crashing if succeeding to allocate the buffer, but not the
 list (mirror would then be tested but not initialized)



Modified: liboggplay/trunk/src/liboggplay/oggplay_buffer.c
===================================================================
--- liboggplay/trunk/src/liboggplay/oggplay_buffer.c	2009-03-02 11:44:46 UTC (rev 3868)
+++ liboggplay/trunk/src/liboggplay/oggplay_buffer.c	2009-03-02 20:48:33 UTC (rev 3869)
@@ -58,7 +58,7 @@
     size = OGGPLAY_DEFAULT_BUFFER_SIZE;
   }
 
-  buffer = (OggPlayBuffer*)oggplay_malloc(sizeof (OggPlayBuffer));
+  buffer = (OggPlayBuffer*)oggplay_calloc(1, sizeof (OggPlayBuffer));
 
   if (buffer == NULL)
     return NULL;



More information about the commits mailing list