@@ -44,7 +44,6 @@ int main(int argc, char** argv)
{
char opt;
int option_index;
- size_t i;
struct option long_options[] = {
{"help", no_argument, NULL, 'h'},
@@ -41,7 +41,7 @@ X509* get_local_cert(const char *src)
*/
int qa_init(const struct qa_conf* conf)
- X509 *crt;
+ X509 *crt = NULL;
/* bind stdout/stderr to a BIO shit to be used externally */
bio_out = BIO_new_fp(stdout, BIO_NOCLOSE);
@@ -154,9 +154,8 @@ static int verify_callback(int ok, X509_STORE_CTX* ctx)
struct qa_connection* qa_connection_new(char* address)
- struct qa_connection* c;
+ struct qa_connection* c = NULL;
char *host, *port;
- int err;
/* parse input address */
if (!host_port(address, &host, &port)) goto error;