fix
authorChristian Grothoff <christian@grothoff.org>
Tue, 21 Dec 2010 13:53:05 +0000 (13:53 +0000)
committerChristian Grothoff <christian@grothoff.org>
Tue, 21 Dec 2010 13:53:05 +0000 (13:53 +0000)
src/fs/fs_test_lib.c

index b7f3cb55aba77ea236e43df481a24d12b62ff7a9..0647aca9741d5f8464c2f45ceb9910bfcaa63885 100644 (file)
@@ -579,6 +579,7 @@ file_generator (void *cls,
   uint8_t *cbuf = buf;
   int mod;
 
+  *emsg = NULL;
   if (buf == NULL)
     return 0;
   for (pos=0;pos<8;pos++)
@@ -647,6 +648,7 @@ GNUNET_FS_TEST_publish (struct GNUNET_FS_TestDaemon *daemon,
        {
          bsize = GNUNET_MIN (sizeof (buf),
                              size - off);
+         emsg = NULL;
          GNUNET_assert (bsize ==
                         file_generator (daemon,
                                         off,