fix warning
[openssl.git] / crypto / conf / conf_def.c
index cf951320af8ee344e60d4fd863be34dc3cebce8c..ff55876b6eda82839ab3e0f5948b21712ddb411f 100644 (file)
@@ -145,7 +145,7 @@ static int def_init_default(CONF *conf)
                return 0;
 
        conf->meth = &default_method;
-       conf->meth_data = CONF_type_default;
+       conf->meth_data = (void *)CONF_type_default;
        conf->data = NULL;
 
        return 1;
@@ -321,7 +321,7 @@ again:
                        p=eat_ws(conf, end);
                        if (*p != ']')
                                {
-                               if (*p != '\0')
+                               if (*p != '\0' && ss != p)
                                        {
                                        ss=p;
                                        goto again;