gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r3939 - GNUnet/src/util/disk


From: grothoff
Subject: [GNUnet-SVN] r3939 - GNUnet/src/util/disk
Date: Wed, 13 Dec 2006 22:32:40 -0800 (PST)

Author: grothoff
Date: 2006-12-13 22:32:38 -0800 (Wed, 13 Dec 2006)
New Revision: 3939

Modified:
   GNUnet/src/util/disk/storage.c
Log:
assertion

Modified: GNUnet/src/util/disk/storage.c
===================================================================
--- GNUnet/src/util/disk/storage.c      2006-12-14 06:30:43 UTC (rev 3938)
+++ GNUnet/src/util/disk/storage.c      2006-12-14 06:32:38 UTC (rev 3939)
@@ -397,13 +397,14 @@
  */
 int disk_file_read(struct GE_Context * ectx,
                   const char * fileName,
-                  int  len,
+                  int len,
                   void * result) {
   /* open file, must exist, open read only */
   int handle;
   int size;
 
   GE_ASSERT(ectx, fileName != NULL);
+  GE_ASSERT(ectx, len > 0);  
   if (len == 0)
     return 0;
   GE_ASSERT(ectx, result != NULL);





reply via email to

[Prev in Thread] Current Thread [Next in Thread]