[MPlayer-cvslog] r34677 - trunk/gui/cfg.c

ib subversion at mplayerhq.hu
Fri Feb 10 14:06:44 CET 2012


Author: ib
Date: Fri Feb 10 14:06:43 2012
New Revision: 34677

Log:
Don't unnecessarily use gstrdup().

The line has already been checked for content.

Modified:
   trunk/gui/cfg.c

Modified: trunk/gui/cfg.c
==============================================================================
--- trunk/gui/cfg.c	Thu Feb  9 16:12:58 2012	(r34676)
+++ trunk/gui/cfg.c	Fri Feb 10 14:06:43 2012	(r34677)
@@ -341,7 +341,7 @@ void cfg_read(void)
 
         while (fgetstr(line, sizeof(line), file))
             if (*line && (i < FF_ARRAY_ELEMS(fsHistory)))
-                fsHistory[i++] = gstrdup(line);
+                fsHistory[i++] = strdup(line);
 
         fclose(file);
     }


More information about the MPlayer-cvslog mailing list