From: Christian Grothoff Date: Tue, 19 Jun 2012 09:25:11 +0000 (+0000) Subject: -minor cleanup X-Git-Tag: initial-import-from-subversion-38251~12978 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c0023ffa9d33f7e0acaa4ab25da1bdc91e5b7d0a;p=oweals%2Fgnunet.git -minor cleanup --- diff --git a/src/namestore/namestore_api.c b/src/namestore/namestore_api.c index 151fb9752..e216ad767 100644 --- a/src/namestore/namestore_api.c +++ b/src/namestore/namestore_api.c @@ -265,30 +265,30 @@ handle_lookup_name_response (struct GNUNET_NAMESTORE_QueueEntry *qe, rd_tmp = &name[name_len]; /* deserialize records */ - struct GNUNET_NAMESTORE_RecordData rd[rd_count]; - if (GNUNET_OK != GNUNET_NAMESTORE_records_deserialize(rd_len, rd_tmp, rd_count, rd)) { - GNUNET_break_op (0); - return; - } - + struct GNUNET_NAMESTORE_RecordData rd[rd_count]; + if (GNUNET_OK != GNUNET_NAMESTORE_records_deserialize(rd_len, rd_tmp, rd_count, rd)) + { + GNUNET_break_op (0); + return; + } - /* reset values if values not contained */ - if (contains_sig == GNUNET_NO) - signature = NULL; - else - signature = &msg->signature; - if (name_len == 0) - name = NULL; - if (name != NULL) + /* reset values if values not contained */ + if (GNUNET_NO == contains_sig) + signature = NULL; + else + signature = &msg->signature; + if (0 == name_len) + name = NULL; + + if (NULL != name) public_key_tmp = &msg->public_key; - else + else public_key_tmp = NULL; - - if (qe->proc != NULL) - { - qe->proc (qe->proc_cls, public_key_tmp, expire, name, rd_count, (rd_count > 0) ? rd : NULL, signature); + + if (NULL != qe->proc) + qe->proc (qe->proc_cls, public_key_tmp, expire, name, rd_count, (rd_count > 0) ? rd : NULL, signature); } GNUNET_free (qe); }