diff --git a/test/cfg/posix.c b/test/cfg/posix.c index 807377f3e..df1164cb1 100644 --- a/test/cfg/posix.c +++ b/test/cfg/posix.c @@ -31,6 +31,13 @@ #include #include +int nullPointer_socketpair(int domain, int t, int protocol, int sv[2]) +{ + // cppcheck-suppress nullPointer + (void) socketpair(domain, t, protocol, NULL); + return socketpair(domain, t, protocol, sv); +} + void nullPointer_lcong48(unsigned short param[7]) { // cppcheck-suppress nullPointer