diff options
author | Josh Rickmar <jrick@devio.us> | 2012-07-03 12:34:58 -0400 |
---|---|---|
committer | Josh Rickmar <jrick@devio.us> | 2012-07-03 12:34:58 -0400 |
commit | 829dd760b7c9599fba1a51f646cf3c5dd1116164 (patch) | |
tree | 0a9928cf801d41bc622b8f6f96d3485505e5bead | |
parent | 724949f84d5304c84099206a8315df14787e172e (diff) | |
download | xombrero-829dd760b7c9599fba1a51f646cf3c5dd1116164.tar.gz |
unbreak unix
-rw-r--r-- | about.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/about.c b/about.c index fe35490..f59d280 100644 --- a/about.c +++ b/about.c @@ -488,6 +488,10 @@ void xtp_handle_dl(struct tab *t, uint8_t cmd, int id) { struct download find, *d = NULL; +#ifndef __MINGW32__ + char *file = NULL; + const char *uri = NULL; +#endif DNPRINTF(XT_D_DOWNLOAD, "download control: cmd %d, id %d\n", cmd, id); @@ -521,9 +525,6 @@ 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); |