aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2006-11-30 14:37:17 +0000
committerChristian Grothoff <christian@grothoff.org>2006-11-30 14:37:17 +0000
commit74f4e52f167f1815fe79f4229ccdfdeefd10e257 (patch)
tree90011d6e507d76aa3985b0138b376707c731373e
parente3f0063539b2d684f356f200194a85f9e35077af (diff)
downloadgnunet-gtk-74f4e52f167f1815fe79f4229ccdfdeefd10e257.tar.gz
gnunet-gtk-74f4e52f167f1815fe79f4229ccdfdeefd10e257.zip
mmap-fix
-rw-r--r--src/plugins/fs/download.c2
-rw-r--r--src/plugins/fs/search.c3
2 files changed, 4 insertions, 1 deletions
diff --git a/src/plugins/fs/download.c b/src/plugins/fs/download.c
index c7ed4d18..453a847e 100644
--- a/src/plugins/fs/download.c
+++ b/src/plugins/fs/download.c
@@ -109,6 +109,8 @@ refreshDirectoryViewFromDisk(DownloadList * list) {
109 &size, 109 &size,
110 YES)) 110 YES))
111 return; 111 return;
112 if (size == 0)
113 return;
112 fd = disk_file_open(ectx, 114 fd = disk_file_open(ectx,
113 list->filename, 115 list->filename,
114 O_RDONLY); 116 O_RDONLY);
diff --git a/src/plugins/fs/search.c b/src/plugins/fs/search.c
index beb6efdc..f70f6630 100644
--- a/src/plugins/fs/search.c
+++ b/src/plugins/fs/search.c
@@ -479,7 +479,8 @@ void on_fssearchbutton_clicked_fs(gpointer dummy2,
479 479
480 searchString = getEntryLineValue(getMainXML(), 480 searchString = getEntryLineValue(getMainXML(),
481 "fssearchKeywordComboBoxEntry"); 481 "fssearchKeywordComboBoxEntry");
482 if (searchString == NULL) { 482 if ( (searchString == NULL) ||
483 (strlen(searchString) == 0) ) {
483 GE_LOG(ectx, 484 GE_LOG(ectx,
484 GE_ERROR | GE_USER | GE_IMMEDIATE, 485 GE_ERROR | GE_USER | GE_IMMEDIATE,
485 _("Need a keyword to search!\n")); 486 _("Need a keyword to search!\n"));