fix
authorChristian Grothoff <christian@grothoff.org>
Wed, 22 Dec 2010 10:56:46 +0000 (10:56 +0000)
committerChristian Grothoff <christian@grothoff.org>
Wed, 22 Dec 2010 10:56:46 +0000 (10:56 +0000)
src/fs/fs_test_lib.c

index 3112ce9a288143aea5c6fea60aaf3a242a2d618c..f24a11e822122bbc95744678859178d7e058f5fa 100644 (file)
@@ -580,7 +580,8 @@ file_generator (void *cls,
   uint8_t *cbuf = buf;
   int mod;
 
-  *emsg = NULL;
+  if (emsg != NULL)
+    *emsg = NULL;
   if (buf == NULL)
     return 0;
   for (pos=0;pos<8;pos++)