forked from OSchip/llvm-project
Fix a logic error caught by the static analyzer.
llvm-svn: 137407
This commit is contained in:
parent
1c5f3fa197
commit
ff7f3cd277
|
@ -373,7 +373,7 @@ RegisterValue::SetValueFromCString (const RegisterInfo *reg_info, const char *va
|
||||||
return error;
|
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.");
|
error.SetErrorString ("Invalid c-string value string.");
|
||||||
return error;
|
return error;
|
||||||
|
|
Loading…
Reference in New Issue