diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-08-15 14:25:57 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-08-15 14:25:57 +0000 |
commit | 6ca0c22d86cf16163a9e017c3d941d6080cab3f1 (patch) | |
tree | f2afb21160fd1481493ef134429811b6320001d6 | |
parent | 92c627121a1684e4d7d28ac3d31822eb66582a7a (diff) | |
download | gnunet-gtk-6ca0c22d86cf16163a9e017c3d941d6080cab3f1.tar.gz gnunet-gtk-6ca0c22d86cf16163a9e017c3d941d6080cab3f1.zip |
nitpicks
-rw-r--r-- | src/fs_event_handler.c | 2 | ||||
-rw-r--r-- | src/main_window_file_publish.c | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/src/fs_event_handler.c b/src/fs_event_handler.c index c00cc7bc..94538824 100644 --- a/src/fs_event_handler.c +++ b/src/fs_event_handler.c | |||
@@ -1610,6 +1610,8 @@ GNUNET_GTK_fs_event_handler (void *cls, | |||
1610 | info->value.publish.filename, | 1610 | info->value.publish.filename, |
1611 | info->value.publish.size, | 1611 | info->value.publish.size, |
1612 | info->value.publish.pctx); | 1612 | info->value.publish.pctx); |
1613 | if (ret == NULL) | ||
1614 | return ret; | ||
1613 | if (info->value.publish.specifics.resume.message != NULL) | 1615 | if (info->value.publish.specifics.resume.message != NULL) |
1614 | { | 1616 | { |
1615 | ret = handle_publish_error (ret, | 1617 | ret = handle_publish_error (ret, |
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, |