[MPlayer-cvslog] r36250 - trunk/gui/util/list.c

ib subversion at mplayerhq.hu
Wed May 8 14:37:28 CEST 2013


Author: ib
Date: Wed May  8 14:37:28 2013
New Revision: 36250

Log:
Check return value to avoid segmentation fault.

Modified:
   trunk/gui/util/list.c

Modified: trunk/gui/util/list.c
==============================================================================
--- trunk/gui/util/list.c	Tue May  7 22:39:18 2013	(r36249)
+++ trunk/gui/util/list.c	Wed May  8 14:37:28 2013	(r36250)
@@ -357,6 +357,9 @@ int add_to_gui_playlist(const char *what
     file = mp_basename(what);
     path = strdup(what);
 
+    if (!path)
+        return False;
+
     if (file > what)
         path[file - what - 1] = 0;
     else


More information about the MPlayer-cvslog mailing list