[client] removed unnecessary array NULL check found by Coverity

This commit is contained in:
Michael Rash 2013-05-09 22:10:38 -04:00
parent 9046acaf22
commit add518016c

View File

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