diff options
author | Dieter Plaetinck <dieter@plaetinck.be> | 2009-04-28 21:53:57 +0200 |
---|---|---|
committer | Dieter Plaetinck <dieter@plaetinck.be> | 2009-04-28 21:53:57 +0200 |
commit | 4ac4d3369870d02526a81de8b73c467974d16a94 (patch) | |
tree | 532248128a8c8dc0888d25367845653a51e1cd0a /uzbl.c | |
parent | 533d2dd3cd818a26210056277664e2b084cbc2bb (diff) |
fix for when handler == NULL
Diffstat (limited to 'uzbl.c')
-rw-r--r-- | uzbl.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -147,9 +147,11 @@ static gboolean download_cb (WebKitWebView *web_view, GObject *download, gpointer user_data) { (void) web_view; (void) user_data; - const gchar* uri = webkit_download_get_uri ((WebKitDownload*)download); - printf("Download -> %s\n",uri); - run_command(download_handler, uri); + if (download_handler) { + const gchar* uri = webkit_download_get_uri ((WebKitDownload*)download); + printf("Download -> %s\n",uri); + run_command(download_handler, uri); + } return (FALSE); } |