dirmngr: Initialize http status code.
authorJustus Winter <justus@g10code.com>
Mon, 7 Dec 2015 10:21:47 +0000 (11:21 +0100)
committerJustus Winter <justus@g10code.com>
Mon, 7 Dec 2015 10:21:47 +0000 (11:21 +0100)
* dirmngr/ks-action.c (ks_action_search): Initialize 'http_status' as
it is unused if LDAP is used to search for keys.
--
This amends 6ac57a48.

Signed-off-by: Justus Winter <justus@g10code.com>
dirmngr/ks-action.c

index 1da91cc..21aa646 100644 (file)
@@ -162,7 +162,7 @@ ks_action_search (ctrl_t ctrl, uri_item_t keyservers,
     {
       int is_http = uri->parsed_uri->is_http;
       int is_ldap = 0;
-      unsigned int http_status;
+      unsigned int http_status = 0;
 #if USE_LDAP
       is_ldap = (strcmp (uri->parsed_uri->scheme, "ldap") == 0
                 || strcmp (uri->parsed_uri->scheme, "ldaps") == 0