[MPlayer-cvslog] r36186 - trunk/gui/dialog/url.c

ib subversion at mplayerhq.hu
Mon Apr 29 14:25:17 CEST 2013


Author: ib
Date: Mon Apr 29 14:25:17 2013
New Revision: 36186

Log:
Merge declaration and assignment.

Modified:
   trunk/gui/dialog/url.c

Modified: trunk/gui/dialog/url.c
==============================================================================
--- trunk/gui/dialog/url.c	Mon Apr 29 14:14:27 2013	(r36185)
+++ trunk/gui/dialog/url.c	Mon Apr 29 14:25:17 2013	(r36186)
@@ -49,9 +49,7 @@ static void button_clicked(GtkButton *bu
 
         if (str) {
             if (!strstr(str, "://")) {
-                char *tmp;
-
-                tmp = malloc(strlen(str) + 8);
+                char *tmp = malloc(strlen(str) + 8);
 
                 if (tmp)
                     sprintf(tmp, "http://%s", str);


More information about the MPlayer-cvslog mailing list