Skip to content

Commit 98d4c94

Browse files
committed
danmar#6163 False nullPointer for strtok(NULL, ...). Correct std.cfg
1 parent bbbe2c1 commit 98d4c94

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

cfg/std.cfg

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -705,7 +705,6 @@
705705
<pure/>
706706
<leak-ignore/>
707707
<arg nr="1">
708-
<not-null/>
709708
<not-uninit/>
710709
</arg>
711710
<arg nr="2">

test/testnullpointer.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2572,6 +2572,9 @@ class TestNullPointer : public TestFixture {
25722572
ASSERT_EQUALS("",errout.str());
25732573
check("size_t get (wchar_t *value) { return wcstombs (NULL, value, 0); }");
25742574
ASSERT_EQUALS("",errout.str());
2575+
2576+
check("void f() { strtok(NULL, 'x');}");
2577+
ASSERT_EQUALS("",errout.str());
25752578
}
25762579

25772580
void nullpointerFputc() {

0 commit comments

Comments
 (0)