Fix a logic error caught by the static analyzer.

llvm-svn: 137407
This commit is contained in:
Johnny Chen 2011-08-12 01:22:56 +00:00
parent 1c5f3fa197
commit ff7f3cd277
1 changed files with 1 additions and 1 deletions

View File

@ -373,7 +373,7 @@ RegisterValue::SetValueFromCString (const RegisterInfo *reg_info, const char *va
return error;
}
if (value_str == NULL && value_str[0] == '\0')
if (value_str == NULL || value_str[0] == '\0')
{
error.SetErrorString ("Invalid c-string value string.");
return error;