From 34bdcc7f86ce248d9dec18686e65d165d582f714 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 26 May 2015 10:24:43 +0000 Subject: [PATCH] -fix (harmless) use of uninit 'nick' --- src/namestore/gnunet-service-namestore.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/namestore/gnunet-service-namestore.c b/src/namestore/gnunet-service-namestore.c index 4af80b829..fffbbba00 100644 --- a/src/namestore/gnunet-service-namestore.c +++ b/src/namestore/gnunet-service-namestore.c @@ -457,7 +457,8 @@ get_nick_record (const struct GNUNET_CRYPTO_EcdsaPrivateKey *zone) res = GSN_database->lookup_records (GSN_database->cls, zone, GNUNET_GNS_MASTERZONE_STR, &lookup_nick_it, &nick); - if ((NULL == nick) || (GNUNET_OK != res)) + if ( (GNUNET_OK != res) || + (NULL == nick) ) { GNUNET_CRYPTO_ecdsa_key_get_public (zone, &pub); GNUNET_log (GNUNET_ERROR_TYPE_INFO | GNUNET_ERROR_TYPE_BULK, @@ -1714,4 +1715,3 @@ main (int argc, char *const *argv) } /* end of gnunet-service-namestore.c */ - -- 2.25.1