From 0886b0534fa6a48e452a9fd4dcfebc520e6afd7c Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 22 Dec 2010 10:56:46 +0000 Subject: [PATCH] fix --- src/fs/fs_test_lib.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/fs/fs_test_lib.c b/src/fs/fs_test_lib.c index 3112ce9a2..f24a11e82 100644 --- a/src/fs/fs_test_lib.c +++ b/src/fs/fs_test_lib.c @@ -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++) -- 2.25.1