diff options
Diffstat (limited to 'src/main_window_file_publish.c')
-rw-r--r-- | src/main_window_file_publish.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main_window_file_publish.c b/src/main_window_file_publish.c index 80c600d4..c6580ea1 100644 --- a/src/main_window_file_publish.c +++ b/src/main_window_file_publish.c | |||
@@ -214,6 +214,7 @@ add_file_at_iter (const char *filename, | |||
214 | GtkTreeStore *ts; | 214 | GtkTreeStore *ts; |
215 | GtkTreeIter pos; | 215 | GtkTreeIter pos; |
216 | char *file_size_fancy; | 216 | char *file_size_fancy; |
217 | char *ss; | ||
217 | 218 | ||
218 | if (GNUNET_OK != | 219 | if (GNUNET_OK != |
219 | GNUNET_DISK_file_size (filename, | 220 | GNUNET_DISK_file_size (filename, |
@@ -234,8 +235,8 @@ add_file_at_iter (const char *filename, | |||
234 | EXTRACTOR_METATYPE_FILENAME, | 235 | EXTRACTOR_METATYPE_FILENAME, |
235 | NULL, 0); | 236 | NULL, 0); |
236 | short_fn = filename; | 237 | short_fn = filename; |
237 | while (NULL != strstr (short_fn, DIR_SEPARATOR_STR)) | 238 | while (NULL != (ss = strstr (short_fn, DIR_SEPARATOR_STR))) |
238 | short_fn = 1 + strstr (short_fn, DIR_SEPARATOR_STR); | 239 | short_fn = 1 + ss; |
239 | GNUNET_CONTAINER_meta_data_insert (meta, | 240 | GNUNET_CONTAINER_meta_data_insert (meta, |
240 | "<gnunet-gtk>", | 241 | "<gnunet-gtk>", |
241 | EXTRACTOR_METATYPE_FILENAME, | 242 | EXTRACTOR_METATYPE_FILENAME, |