changeset 36092:e16833799bae

Merge declaration and assignment.
author ib
date Mon, 29 Apr 2013 12:25:17 +0000
parents 101225a6ed42
children 22ac72559523
files gui/dialog/url.c
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/gui/dialog/url.c	Mon Apr 29 12:14:27 2013 +0000
+++ b/gui/dialog/url.c	Mon Apr 29 12:25:17 2013 +0000
@@ -49,9 +49,7 @@
 
         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);