[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r6317 - GNUnet/src/applications/topology_default
From: |
gnunet |
Subject: |
[GNUnet-SVN] r6317 - GNUnet/src/applications/topology_default |
Date: |
Fri, 15 Feb 2008 21:18:54 -0700 (MST) |
Author: grothoff
Date: 2008-02-15 21:18:53 -0700 (Fri, 15 Feb 2008)
New Revision: 6317
Modified:
GNUnet/src/applications/topology_default/topology.c
Log:
size maybe 0
Modified: GNUnet/src/applications/topology_default/topology.c
===================================================================
--- GNUnet/src/applications/topology_default/topology.c 2008-02-16 02:54:40 UTC
(rev 6316)
+++ GNUnet/src/applications/topology_default/topology.c 2008-02-16 04:18:53 UTC
(rev 6317)
@@ -536,7 +536,8 @@
return GNUNET_SYSERR;
}
}
- if (fn != NULL)
+ if ( (fn != NULL) &&
+ (size > 0) )
{
data = GNUNET_malloc (size);
if (size != GNUNET_disk_file_read (ectx, fn, size, data))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r6317 - GNUnet/src/applications/topology_default,
gnunet <=