diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-05-26 10:24:43 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-05-26 10:24:43 +0000 |
commit | 34bdcc7f86ce248d9dec18686e65d165d582f714 (patch) | |
tree | ab23ec812da61c7cba5b4e799fba7c0a4868e33b | |
parent | 63cdd6f3e68b485ca1d3daa1b9e004768fdd5d9c (diff) | |
download | gnunet-34bdcc7f86ce248d9dec18686e65d165d582f714.tar.gz gnunet-34bdcc7f86ce248d9dec18686e65d165d582f714.zip |
-fix (harmless) use of uninit 'nick'
-rw-r--r-- | src/namestore/gnunet-service-namestore.c | 4 |
1 files 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) | |||
457 | res = GSN_database->lookup_records (GSN_database->cls, zone, | 457 | res = GSN_database->lookup_records (GSN_database->cls, zone, |
458 | GNUNET_GNS_MASTERZONE_STR, | 458 | GNUNET_GNS_MASTERZONE_STR, |
459 | &lookup_nick_it, &nick); | 459 | &lookup_nick_it, &nick); |
460 | if ((NULL == nick) || (GNUNET_OK != res)) | 460 | if ( (GNUNET_OK != res) || |
461 | (NULL == nick) ) | ||
461 | { | 462 | { |
462 | GNUNET_CRYPTO_ecdsa_key_get_public (zone, &pub); | 463 | GNUNET_CRYPTO_ecdsa_key_get_public (zone, &pub); |
463 | GNUNET_log (GNUNET_ERROR_TYPE_INFO | GNUNET_ERROR_TYPE_BULK, | 464 | GNUNET_log (GNUNET_ERROR_TYPE_INFO | GNUNET_ERROR_TYPE_BULK, |
@@ -1714,4 +1715,3 @@ main (int argc, char *const *argv) | |||
1714 | } | 1715 | } |
1715 | 1716 | ||
1716 | /* end of gnunet-service-namestore.c */ | 1717 | /* end of gnunet-service-namestore.c */ |
1717 | |||