Skip to content

Commit b2f1ec8

Browse files
Update std.c
1 parent d3c7705 commit b2f1ec8

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

test/cfg/std.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3519,6 +3519,13 @@ void invalidFunctionArg_strchr(const char *cs, int c)
35193519
(void)strchr(cs, 256);
35203520
}
35213521

3522+
void constParameterPointer_strchr(char *str) // #14453
3523+
{
3524+
char *sep = strchr(str, ':');
3525+
if (sep)
3526+
*sep = '\0';
3527+
}
3528+
35223529
void invalidFunctionArg_log10(float f, double d, const long double ld)
35233530
{
35243531
// cppcheck-suppress invalidFunctionArg

0 commit comments

Comments
 (0)