[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r12562 - gnunet-gtk/src
From: |
gnunet |
Subject: |
[GNUnet-SVN] r12562 - gnunet-gtk/src |
Date: |
Sun, 15 Aug 2010 16:25:57 +0200 |
Author: grothoff
Date: 2010-08-15 16:25:57 +0200 (Sun, 15 Aug 2010)
New Revision: 12562
Modified:
gnunet-gtk/src/fs_event_handler.c
gnunet-gtk/src/main_window_file_publish.c
Log:
nitpicks
Modified: gnunet-gtk/src/fs_event_handler.c
===================================================================
--- gnunet-gtk/src/fs_event_handler.c 2010-08-15 14:14:47 UTC (rev 12561)
+++ gnunet-gtk/src/fs_event_handler.c 2010-08-15 14:25:57 UTC (rev 12562)
@@ -1610,6 +1610,8 @@
info->value.publish.filename,
info->value.publish.size,
info->value.publish.pctx);
+ if (ret == NULL)
+ return ret;
if (info->value.publish.specifics.resume.message != NULL)
{
ret = handle_publish_error (ret,
Modified: gnunet-gtk/src/main_window_file_publish.c
===================================================================
--- gnunet-gtk/src/main_window_file_publish.c 2010-08-15 14:14:47 UTC (rev
12561)
+++ gnunet-gtk/src/main_window_file_publish.c 2010-08-15 14:25:57 UTC (rev
12562)
@@ -214,6 +214,7 @@
GtkTreeStore *ts;
GtkTreeIter pos;
char *file_size_fancy;
+ char *ss;
if (GNUNET_OK !=
GNUNET_DISK_file_size (filename,
@@ -234,8 +235,8 @@
EXTRACTOR_METATYPE_FILENAME,
NULL, 0);
short_fn = filename;
- while (NULL != strstr (short_fn, DIR_SEPARATOR_STR))
- short_fn = 1 + strstr (short_fn, DIR_SEPARATOR_STR);
+ while (NULL != (ss = strstr (short_fn, DIR_SEPARATOR_STR)))
+ short_fn = 1 + ss;
GNUNET_CONTAINER_meta_data_insert (meta,
"<gnunet-gtk>",
EXTRACTOR_METATYPE_FILENAME,
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r12562 - gnunet-gtk/src,
gnunet <=