Explicitly test against NULL; do not use !p or similar
[openssl.git] / crypto / ts / ts_conf.c
index 403e098d28a8270d3c4b4408a20edb849faf6737..4117ccdd87b1b99415fbd8f18798d700640cd1e5 100644 (file)
@@ -283,9 +283,10 @@ int TS_CONF_set_def_policy(CONF *conf, const char *section,
 {
     int ret = 0;
     ASN1_OBJECT *policy_obj = NULL;
-    if (!policy)
+
+    if (policy == NULL)
         policy = NCONF_get_string(conf, section, ENV_DEFAULT_POLICY);
-    if (!policy) {
+    if (policy == NULL) {
         ts_CONF_lookup_fail(section, ENV_DEFAULT_POLICY);
         goto err;
     }