Explicitly test against NULL; do not use !p or similar
[openssl.git] / crypto / engine / eng_dyn.c
index 7b1bc6ed840adf195aec1be299aec27004f2594a..15504410d95fd96310bff2f82375528dc81060cd 100644 (file)
@@ -343,7 +343,7 @@ static int dynamic_ctrl(ENGINE *e, int cmd, long i, void *p, void (*f) (void))
         return 1;
     case DYNAMIC_CMD_DIR_ADD:
         /* a NULL 'p' or a string of zero-length is the same thing */
-        if (!p || (strlen((const char *)p) < 1)) {
+        if (p == NULL || (strlen((const char *)p) < 1)) {
             ENGINEerr(ENGINE_F_DYNAMIC_CTRL, ENGINE_R_INVALID_ARGUMENT);
             return 0;
         }