about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJosh Rickmar <jrick@devio.us>2012-07-03 12:34:58 -0400
committerJosh Rickmar <jrick@devio.us>2012-07-03 12:34:58 -0400
commit829dd760b7c9599fba1a51f646cf3c5dd1116164 (patch)
tree0a9928cf801d41bc622b8f6f96d3485505e5bead
parent724949f84d5304c84099206a8315df14787e172e (diff)
downloadxombrero-829dd760b7c9599fba1a51f646cf3c5dd1116164.tar.gz
unbreak unix
-rw-r--r--about.c7
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);
128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193