makecert: Fix incorrect return value check

This commit is contained in:
Martin Fleisz 2015-06-30 08:14:28 +02:00
parent 15473557da
commit d64195d46a

View File

@ -734,7 +734,7 @@ int makecert_context_output_private_key_file(MAKECERT_CONTEXT* context, char* pa
if (!context->output_file)
{
context->output_file = _strdup(context->default_name);
if (context->output_file)
if (!context->output_file)
return -1;
}