Initialise dir to avoid a compiler warning.
[openssl.git] / crypto / x509 / by_dir.c
index d56679177bf4451c86b87f5164b252967e81035c..b4a21716f213321348c86f016fbf652e6a1dd339 100644 (file)
@@ -114,7 +114,7 @@ static int dir_ctrl(X509_LOOKUP *ctx, int cmd, const char *argp, long argl,
        {
        int ret=0;
        BY_DIR *ld;
-       char *dir;
+       char *dir = NULL;
 
        ld=(BY_DIR *)ctx->method_data;