This error occurs in two similar cases.
1) The analyzer found a potential error: a pointer to bool type is assigned false value. It is highly probable that the pointer dereferencing operation is missing. For example:
float Get(bool *retStatus)
{
...
if (retStatus != nullptr)
retStatus = false;
...
}
The '*' operator is missing in this code. The operation of nulling the retStatus pointer will be performed instead of status return. This is the correct code:
if (retStatus != nullptr)
*retStatus = false;
2) The analyzer found a potential error: a pointer referring to the char/wchar_t type is assigned value '\0' or L'\0'. It is highly probable that the pointer dereferencing operation is missing. For example:
char *cp;
...
cp = '\0';
This is the correct code:
char *cp;
...
*cp = '\0';
This diagnostic is classified as:
|
You can look at examples of errors detected by the V527 diagnostic. |
Was this page helpful?
Your message has been sent. We will email you at
If you do not see the email in your inbox, please check if it is filtered to one of the following folders:
Take
a chance!