[DVDnav-discuss] r974 - trunk/libdvdnav/src/searching.c

nicodvb subversion at mplayerhq.hu
Fri Nov 30 00:10:00 CET 2007


Author: nicodvb
Date: Fri Nov 30 00:09:59 2007
New Revision: 974

Log:
in dvdnav_describe_title_chapters()  init *times to NULL, so if something fails we don't leave the ptr uninited

Modified:
   trunk/libdvdnav/src/searching.c

Modified: trunk/libdvdnav/src/searching.c
==============================================================================
--- trunk/libdvdnav/src/searching.c	(original)
+++ trunk/libdvdnav/src/searching.c	Fri Nov 30 00:09:59 2007
@@ -561,6 +561,7 @@ uint32_t dvdnav_describe_title_chapters(
   cell_playback_t *cell;
   uint64_t length, *tmp=NULL;
 
+  *times = NULL;
   pthread_mutex_lock(&this->vm_lock);
   if(!this->vm->vmgi) {
     printerr("Bad VM state or missing VTSI.");



More information about the DVDnav-discuss mailing list