Commit 0cc51657 authored by Vincent Untz's avatar Vincent Untz Committed by Vincent Untz

don't do anything if the filename is void (entry_drag_data_received):

2004-11-08  Vincent Untz  <vincent@vuntz.net>

	* panel-run-dialog.c: (panel_run_dialog_append_file_utf8): don't do
	anything if the filename is void
	(entry_drag_data_received): ditto
parent d669f4b3
2004-11-08 Vincent Untz <vincent@vuntz.net>
* panel-run-dialog.c: (panel_run_dialog_append_file_utf8): don't do
anything if the filename is void
(entry_drag_data_received): ditto
2004-11-08 James Henstridge <james@jamesh.id.au>
* panel-background.c (panel_background_prepare): call
......
......@@ -464,7 +464,7 @@ panel_run_dialog_append_file_utf8 (PanelRunDialog *dialog,
char *quoted, *temp;
/* Don't allow filenames beginning with '-' */
if (!file || file[0] == '-')
if (!file || !file[0] || file[0] == '-')
return;
quoted = quote_string (file);
......@@ -1372,7 +1372,7 @@ entry_drag_data_received (GtkEditable *entry,
}
for (i = 0; uris [i]; i++) {
if (!uris [i] || !uris [i])
if (!uris [i] || !uris [i][0])
continue;
file = gnome_vfs_get_local_path_from_uri (uris [i]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment