Skip to content

Commit 68f432e

Browse files
committed
Suppress intentional NULL dereference.
1 parent 01826c7 commit 68f432e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/emc/task/signalhandler.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,8 @@ int main(int argc, const char *argv[]) {
138138
sleep(10); // during which a SIGUSR2 will generate a backtrace
139139

140140
void *foo = 0;
141+
// Fully intentional
142+
// cppcheck-suppress nullPointer
141143
memset(foo,0,47); // this segfault would warp us into the gdb window
142144

143145
return 0;

0 commit comments

Comments
 (0)