diff options
author | Marco Peereboom <marco@conformal.com> | 2012-07-03 11:18:55 -0500 |
---|---|---|
committer | Marco Peereboom <marco@conformal.com> | 2012-07-03 11:18:55 -0500 |
commit | 724949f84d5304c84099206a8315df14787e172e (patch) | |
tree | 529385f910bab8c451b6b6812087a3f9c0eb6d84 | |
parent | 2eb1ec6ac0091a6432ce6be5dc506d375af21650 (diff) | |
download | xombrero-724949f84d5304c84099206a8315df14787e172e.tar.gz |
make this work again on windows
-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; |