From: Christian Grothoff Date: Wed, 25 Jan 2012 10:34:13 +0000 (+0000) Subject: -cleaner X-Git-Tag: initial-import-from-subversion-38251~15119 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=5ad22fe9b0fdad16e2bef4788720bfd2d7a7903e;p=oweals%2Fgnunet.git -cleaner --- diff --git a/src/fs/test_fs_namespace.c b/src/fs/test_fs_namespace.c index df9a310b9..181a23c35 100644 --- a/src/fs/test_fs_namespace.c +++ b/src/fs/test_fs_namespace.c @@ -235,12 +235,12 @@ publish_cont (void *cls, const struct GNUNET_FS_Uri *ksk_uri, const char *emsg) GNUNET_CRYPTO_hash_to_enc (&nsid, &enc); GNUNET_snprintf (sbuf, sizeof (sbuf), "gnunet://fs/sks/%s/this", &enc); sks_uri = GNUNET_FS_uri_parse (sbuf, &msg); - if (msg != NULL) + if (NULL == sks_uri) { FPRINTF (stderr, "failed to parse URI `%s': %s\n", sbuf, msg); err = 1; GNUNET_FS_stop (fs); - GNUNET_free (msg); + GNUNET_free_non_null (msg); return; } ksk_search =