diff options
-rw-r--r-- | about.c | 5 | ||||
-rw-r--r-- | xombrero.c | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/about.c b/about.c index 2788ff2..fe35490 100644 --- a/about.c +++ b/about.c @@ -488,8 +488,6 @@ void xtp_handle_dl(struct tab *t, uint8_t cmd, int id) { struct download find, *d = NULL; - char *file; - const char *uri; DNPRINTF(XT_D_DOWNLOAD, "download control: cmd %d, id %d\n", cmd, id); @@ -523,6 +521,9 @@ xtp_handle_dl(struct tab *t, uint8_t cmd, int id) /* XXX uri's aren't handled properly on windows? */ unlink(webkit_download_get_destination_uri(d->download)); #else + char *file = NULL; + const char *uri = NULL; + uri = webkit_download_get_destination_uri(d->download); if ((file = g_filename_from_uri(uri, NULL, NULL)) != NULL) { unlink(file); diff --git a/xombrero.c b/xombrero.c index 583b3f2..56e09c7 100644 --- a/xombrero.c +++ b/xombrero.c @@ -5095,7 +5095,7 @@ download_start(struct tab *t, struct download *d, int flag) const gchar *suggested_name; gchar *filename = NULL; char *uri = NULL; - char *path; + char *path = NULL; int ret = TRUE; int i; |