diff options
Diffstat (limited to 'audio/gmpc/files/patch-src-open-location.c')
-rw-r--r-- | audio/gmpc/files/patch-src-open-location.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/audio/gmpc/files/patch-src-open-location.c b/audio/gmpc/files/patch-src-open-location.c new file mode 100644 index 000000000000..393c4198bca1 --- /dev/null +++ b/audio/gmpc/files/patch-src-open-location.c @@ -0,0 +1,15 @@ +--- src/open-location.c.orig Sat Jul 3 14:33:37 2004 ++++ src/open-location.c Sun Jul 25 17:40:10 2004 +@@ -171,9 +171,10 @@ + + void ol_add_location() + { +- if(strlen(gtk_entry_get_text(GTK_ENTRY(glade_xml_get_widget(ol_xml, "entry_stream")))) == 0 ) return; + GList *list = NULL; +- GnomeVFSURI *uri = gnome_vfs_uri_new(gtk_entry_get_text(GTK_ENTRY(glade_xml_get_widget(ol_xml, "entry_stream")))); ++ GnomeVFSURI *uri; ++ if(strlen(gtk_entry_get_text(GTK_ENTRY(glade_xml_get_widget(ol_xml, "entry_stream")))) == 0 ) return; ++ uri = gnome_vfs_uri_new(gtk_entry_get_text(GTK_ENTRY(glade_xml_get_widget(ol_xml, "entry_stream")))); + if(uri == NULL) + { + g_print("Invalid link\n"); |