std.cfg: Added more test for strcmp().

This commit is contained in:
orbitcowboy 2022-04-21 16:13:48 +02:00
parent e06169cf8d
commit a6f87e6b8a
1 changed files with 9 additions and 0 deletions

View File

@ -3252,6 +3252,15 @@ void uninitvar_wcschr(void)
(void)wcschr(cs,c);
}
void nullPointer_strcmp(char *s1, char *s2)
{
// cppcheck-suppress nullPointer
(void)strcmp(NULL,s2);
// cppcheck-suppress nullPointer
(void)strcmp(s1,NULL);
(void)strcmp(s1,s2);
}
void uninitvar_strcmp(char *s1, char *s2)
{
char *str1;