changeset 36093:22ac72559523

Move declaration into scope where variable is used.
author ib
date Mon, 29 Apr 2013 12:26:37 +0000
parents e16833799bae
children d94fff99b49b
files gui/dialog/url.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/gui/dialog/url.c	Mon Apr 29 12:25:17 2013 +0000
+++ b/gui/dialog/url.c	Mon Apr 29 12:26:37 2013 +0000
@@ -40,8 +40,6 @@
 
 static void button_clicked(GtkButton *button, gpointer user_data)
 {
-    urlItem *item;
-
     (void)button;
 
     if (user_data) {
@@ -59,6 +57,8 @@
             }
 
             if (str) {
+                urlItem *item;
+
                 uiSetFile(NULL, str, STREAMTYPE_STREAM);
                 listMgr(PLAYLIST_DELETE, 0);
                 add_to_gui_playlist(str, PLAYLIST_ITEM_APPEND);