[client] removed unnecessary array NULL check found by Coverity
authorMichael Rash <mbr@cipherdyne.org>
Fri, 10 May 2013 02:10:38 +0000 (22:10 -0400)
committerMichael Rash <mbr@cipherdyne.org>
Fri, 10 May 2013 02:10:38 +0000 (22:10 -0400)
client/config_init.c

index 2ce1853..ee63269 100644 (file)
@@ -1347,8 +1347,7 @@ validate_options(fko_cli_options_t *options)
     */
     if(options->use_gpg)
     {
-        if(options->gpg_recipient_key == NULL
-            || strlen(options->gpg_recipient_key) == 0)
+        if(strlen(options->gpg_recipient_key) == 0)
         {
             log_msg(LOG_VERBOSITY_ERROR,
                 "Must specify --gpg-recipient-key when GPG is used.");