[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r3831 - gnunet-gtk/src/plugins/fs
From: |
grothoff |
Subject: |
[GNUnet-SVN] r3831 - gnunet-gtk/src/plugins/fs |
Date: |
Thu, 30 Nov 2006 06:37:19 -0800 (PST) |
Author: grothoff
Date: 2006-11-30 06:37:17 -0800 (Thu, 30 Nov 2006)
New Revision: 3831
Modified:
gnunet-gtk/src/plugins/fs/download.c
gnunet-gtk/src/plugins/fs/search.c
Log:
mmap-fix
Modified: gnunet-gtk/src/plugins/fs/download.c
===================================================================
--- gnunet-gtk/src/plugins/fs/download.c 2006-11-30 04:49:23 UTC (rev
3830)
+++ gnunet-gtk/src/plugins/fs/download.c 2006-11-30 14:37:17 UTC (rev
3831)
@@ -109,6 +109,8 @@
&size,
YES))
return;
+ if (size == 0)
+ return;
fd = disk_file_open(ectx,
list->filename,
O_RDONLY);
Modified: gnunet-gtk/src/plugins/fs/search.c
===================================================================
--- gnunet-gtk/src/plugins/fs/search.c 2006-11-30 04:49:23 UTC (rev 3830)
+++ gnunet-gtk/src/plugins/fs/search.c 2006-11-30 14:37:17 UTC (rev 3831)
@@ -479,7 +479,8 @@
searchString = getEntryLineValue(getMainXML(),
"fssearchKeywordComboBoxEntry");
- if (searchString == NULL) {
+ if ( (searchString == NULL) ||
+ (strlen(searchString) == 0) ) {
GE_LOG(ectx,
GE_ERROR | GE_USER | GE_IMMEDIATE,
_("Need a keyword to search!\n"));
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r3831 - gnunet-gtk/src/plugins/fs,
grothoff <=