From c800ac5118b7b497e2b88b7192f691abd29aff55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sun, 18 Mar 2018 13:53:46 +0100 Subject: [PATCH] generate_cfg_tests: updating testing for not-null --- test/cfg/generated-cfg-tests-avr.cpp | 51 +- test/cfg/generated-cfg-tests-bsd.cpp | 15 +- test/cfg/generated-cfg-tests-gnu.cpp | 165 ++- test/cfg/generated-cfg-tests-motif.cpp | 9 +- test/cfg/generated-cfg-tests-posix.cpp | 573 +++++--- test/cfg/generated-cfg-tests-qt.cpp | 27 +- test/cfg/generated-cfg-tests-sdl.cpp | 21 +- test/cfg/generated-cfg-tests-sfml.cpp | 9 +- test/cfg/generated-cfg-tests-std.cpp | 1392 +++++++++++++------- test/cfg/generated-cfg-tests-windows.cpp | 1266 ++++++++++++------ test/cfg/generated-cfg-tests-wxwidgets.cpp | 57 +- tools/generate_cfg_tests.cpp | 2 +- 12 files changed, 2391 insertions(+), 1196 deletions(-) diff --git a/test/cfg/generated-cfg-tests-avr.cpp b/test/cfg/generated-cfg-tests-avr.cpp index 8d4b5392b..9e6f1d49f 100644 --- a/test/cfg/generated-cfg-tests-avr.cpp +++ b/test/cfg/generated-cfg-tests-avr.cpp @@ -35,8 +35,9 @@ void test__vfprintf_P__leakignore() { } void test__vfprintf_P__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - vfprintf_P(NULL, arg2); + vfprintf_P(p, arg2); } void test__vfprintf_P__arg1__notuninit() { @@ -124,8 +125,9 @@ void test__fprintf_P__leakignore() { } void test__fprintf_P__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - fprintf_P(NULL, arg2); + fprintf_P(p, arg2); } void test__fprintf_P__arg1__notuninit() { @@ -148,8 +150,9 @@ void test__fputs_P__leakignore() { } void test__fputs_P__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - fputs_P(NULL, arg2); + fputs_P(p, arg2); } void test__fputs_P__arg1__notuninit() { @@ -159,8 +162,9 @@ void test__fputs_P__arg1__notuninit() { } void test__fputs_P__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - fputs_P(arg1, NULL); + fputs_P(arg1, p); } void test__fputs_P__arg2__notuninit() { @@ -188,8 +192,9 @@ void test__puts_P__arg1__notbool() { } void test__puts_P__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - puts_P(NULL); + puts_P(p); } void test__puts_P__arg1__notuninit() { @@ -257,8 +262,9 @@ void test__fdevopen__noreturn() { } void test__fdevopen__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - fdevopen(NULL, arg2); + fdevopen(p, arg2); } void test__fdevopen__arg1__notuninit() { @@ -268,8 +274,9 @@ void test__fdevopen__arg1__notuninit() { } void test__fdevopen__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - fdevopen(arg1, NULL); + fdevopen(arg1, p); } void test__fdevopen__arg2__notuninit() { @@ -298,8 +305,9 @@ void test__ltoa__arg1__notuninit() { } void test__ltoa__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - ltoa(arg1, NULL, arg3); + ltoa(arg1, p, arg3); } void test__ltoa__arg2__notuninit() { @@ -309,8 +317,9 @@ void test__ltoa__arg2__notuninit() { } void test__ltoa__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - ltoa(arg1, arg2, NULL); + ltoa(arg1, arg2, p); } void test__ltoa__arg3__notuninit() { @@ -339,8 +348,9 @@ void test__utoa__arg1__notuninit() { } void test__utoa__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - utoa(arg1, NULL, arg3); + utoa(arg1, p, arg3); } void test__utoa__arg2__notuninit() { @@ -350,8 +360,9 @@ void test__utoa__arg2__notuninit() { } void test__utoa__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - utoa(arg1, arg2, NULL); + utoa(arg1, arg2, p); } void test__utoa__arg3__notuninit() { @@ -380,8 +391,9 @@ void test__ultoa__arg1__notuninit() { } void test__ultoa__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - ultoa(arg1, NULL, arg3); + ultoa(arg1, p, arg3); } void test__ultoa__arg2__notuninit() { @@ -391,8 +403,9 @@ void test__ultoa__arg2__notuninit() { } void test__ultoa__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - ultoa(arg1, arg2, NULL); + ultoa(arg1, arg2, p); } void test__ultoa__arg3__notuninit() { @@ -428,8 +441,9 @@ void test__random_r__leakignore() { } void test__random_r__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - random_r(NULL); + random_r(p); } void test__srandom__noreturn() { @@ -471,8 +485,9 @@ void test__dtostre__arg1__notuninit() { } void test__dtostre__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - dtostre(arg1, NULL); + dtostre(arg1, p); } void test__dtostrf__noreturn() { @@ -507,8 +522,9 @@ void test__dtostrf__arg3__notuninit() { } void test__dtostrf__arg4__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - dtostrf(arg1, arg2, arg3, NULL); + dtostrf(arg1, arg2, arg3, p); } void test__ffs__noreturn() { @@ -582,8 +598,9 @@ void test__memccpy__leakignore() { } void test__memccpy__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - memccpy(NULL, arg2, arg3, arg4); + memccpy(p, arg2, arg3, arg4); } void test__memccpy__arg2__notuninit() { diff --git a/test/cfg/generated-cfg-tests-bsd.cpp b/test/cfg/generated-cfg-tests-bsd.cpp index 029cc4bec..0d3d689f1 100644 --- a/test/cfg/generated-cfg-tests-bsd.cpp +++ b/test/cfg/generated-cfg-tests-bsd.cpp @@ -28,8 +28,9 @@ void test__fts_open__arg2__notuninit() { } void test__fts_open__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - fts_open(arg1, arg2, NULL); + fts_open(arg1, arg2, p); } void test__fts_open__arg3__notuninit() { @@ -46,8 +47,9 @@ void test__fts_read__noreturn() { } void test__fts_read__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - fts_read(NULL); + fts_read(p); } void test__fts_read__arg1__notuninit() { @@ -178,13 +180,15 @@ void test__readpassphrase__arg1__notuninit() { } void test__readpassphrase__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - readpassphrase(arg1, NULL, arg3, arg4); + readpassphrase(arg1, p, arg3, arg4); } void test__readpassphrase__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - readpassphrase(arg1, arg2, NULL, arg4); + readpassphrase(arg1, arg2, p, arg4); } void test__readpassphrase__arg3__notuninit() { @@ -226,8 +230,9 @@ void test__strtonum__leakignore() { } void test__strtonum__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - strtonum(NULL, arg2, arg3, arg4); + strtonum(p, arg2, arg3, arg4); } void test__strtonum__arg1__notuninit() { diff --git a/test/cfg/generated-cfg-tests-gnu.cpp b/test/cfg/generated-cfg-tests-gnu.cpp index 1e932e34c..f4b545e26 100644 --- a/test/cfg/generated-cfg-tests-gnu.cpp +++ b/test/cfg/generated-cfg-tests-gnu.cpp @@ -34,8 +34,9 @@ void test__accept__arg2__notuninit() { } void test__accept__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - accept(arg1, arg2, NULL, arg4); + accept(arg1, arg2, p, arg4); } void test__accept__arg3__notuninit() { @@ -63,8 +64,9 @@ void test__atoq__useretval() { } void test__atoq__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = atoq(NULL); + result = atoq(p); } void test__atoq__arg1__notuninit() { @@ -86,8 +88,9 @@ void test__strndupa__useretval() { } void test__strndupa__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = strndupa(NULL, arg2); + result = strndupa(p, arg2); } void test__strndupa__arg1__notuninit() { @@ -121,8 +124,9 @@ void test__strsep__arg1__notuninit() { } void test__strsep__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = strsep(arg1, NULL); + result = strsep(arg1, p); } void test__strsep__arg2__notuninit() { @@ -144,8 +148,9 @@ void test__strdupa__useretval() { } void test__strdupa__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = strdupa(NULL); + result = strdupa(p); } void test__strdupa__arg1__notuninit() { @@ -162,8 +167,9 @@ void test__backtrace__noreturn() { } void test__backtrace__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - backtrace(NULL, arg2); + backtrace(p, arg2); } void test__backtrace__arg2__notuninit() { @@ -185,8 +191,9 @@ void test__backtrace_symbols__useretval() { } void test__backtrace_symbols__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = backtrace_symbols(NULL, arg2); + result = backtrace_symbols(p, arg2); } void test__backtrace_symbols__arg1__notuninit() { @@ -209,8 +216,9 @@ void test__backtrace_symbols_fd__noreturn() { } void test__backtrace_symbols_fd__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - backtrace_symbols_fd(NULL, arg2, arg3); + backtrace_symbols_fd(p, arg2, arg3); } void test__backtrace_symbols_fd__arg1__notuninit() { @@ -251,13 +259,15 @@ void test__ecvt__arg2__notuninit() { } void test__ecvt__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - ecvt(arg1, arg2, NULL, arg4); + ecvt(arg1, arg2, p, arg4); } void test__ecvt__arg4__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - ecvt(arg1, arg2, arg3, NULL); + ecvt(arg1, arg2, arg3, p); } void test__qfcvt__noreturn() { @@ -280,13 +290,15 @@ void test__qfcvt__arg2__notuninit() { } void test__qfcvt__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - qfcvt(arg1, arg2, NULL, arg4); + qfcvt(arg1, arg2, p, arg4); } void test__qfcvt__arg4__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - qfcvt(arg1, arg2, arg3, NULL); + qfcvt(arg1, arg2, arg3, p); } void test__qgcvt__noreturn() { @@ -309,8 +321,9 @@ void test__qgcvt__arg2__notuninit() { } void test__qgcvt__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - qgcvt(arg1, arg2, NULL); + qgcvt(arg1, arg2, p); } void test__ecvt_r__noreturn() { @@ -338,18 +351,21 @@ void test__ecvt_r__arg2__notuninit() { } void test__ecvt_r__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - ecvt_r(arg1, arg2, NULL, arg4, arg5, arg6); + ecvt_r(arg1, arg2, p, arg4, arg5, arg6); } void test__ecvt_r__arg4__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - ecvt_r(arg1, arg2, arg3, NULL, arg5, arg6); + ecvt_r(arg1, arg2, arg3, p, arg5, arg6); } void test__ecvt_r__arg5__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - ecvt_r(arg1, arg2, arg3, arg4, NULL, arg6); + ecvt_r(arg1, arg2, arg3, arg4, p, arg6); } void test__ecvt_r__arg6__notuninit() { @@ -383,18 +399,21 @@ void test__fcvt_r__arg2__notuninit() { } void test__fcvt_r__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - fcvt_r(arg1, arg2, NULL, arg4, arg5, arg6); + fcvt_r(arg1, arg2, p, arg4, arg5, arg6); } void test__fcvt_r__arg4__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - fcvt_r(arg1, arg2, arg3, NULL, arg5, arg6); + fcvt_r(arg1, arg2, arg3, p, arg5, arg6); } void test__fcvt_r__arg5__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - fcvt_r(arg1, arg2, arg3, arg4, NULL, arg6); + fcvt_r(arg1, arg2, arg3, arg4, p, arg6); } void test__fcvt_r__arg6__notuninit() { @@ -428,18 +447,21 @@ void test__qecvt_r__arg2__notuninit() { } void test__qecvt_r__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - qecvt_r(arg1, arg2, NULL, arg4, arg5, arg6); + qecvt_r(arg1, arg2, p, arg4, arg5, arg6); } void test__qecvt_r__arg4__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - qecvt_r(arg1, arg2, arg3, NULL, arg5, arg6); + qecvt_r(arg1, arg2, arg3, p, arg5, arg6); } void test__qecvt_r__arg5__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - qecvt_r(arg1, arg2, arg3, arg4, NULL, arg6); + qecvt_r(arg1, arg2, arg3, arg4, p, arg6); } void test__qecvt_r__arg6__notuninit() { @@ -473,18 +495,21 @@ void test__qfcvt_r__arg2__notuninit() { } void test__qfcvt_r__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - qfcvt_r(arg1, arg2, NULL, arg4, arg5, arg6); + qfcvt_r(arg1, arg2, p, arg4, arg5, arg6); } void test__qfcvt_r__arg4__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - qfcvt_r(arg1, arg2, arg3, NULL, arg5, arg6); + qfcvt_r(arg1, arg2, arg3, p, arg5, arg6); } void test__qfcvt_r__arg5__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - qfcvt_r(arg1, arg2, arg3, arg4, NULL, arg6); + qfcvt_r(arg1, arg2, arg3, arg4, p, arg6); } void test__qfcvt_r__arg6__notuninit() { @@ -517,8 +542,9 @@ void test__strcasestr__leakignore() { } void test__strcasestr__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = strcasestr(NULL, arg2); + result = strcasestr(p, arg2); } void test__strcasestr__arg1__notuninit() { @@ -528,8 +554,9 @@ void test__strcasestr__arg1__notuninit() { } void test__strcasestr__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = strcasestr(arg1, NULL); + result = strcasestr(arg1, p); } void test__strcasestr__arg2__notuninit() { @@ -557,18 +584,21 @@ void test__getresuid__leakignore() { } void test__getresuid__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - getresuid(NULL, arg2, arg3); + getresuid(p, arg2, arg3); } void test__getresuid__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - getresuid(arg1, NULL, arg3); + getresuid(arg1, p, arg3); } void test__getresuid__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - getresuid(arg1, arg2, NULL); + getresuid(arg1, arg2, p); } void test__getresgid__noreturn() { @@ -590,18 +620,21 @@ void test__getresgid__leakignore() { } void test__getresgid__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - getresgid(NULL, arg2, arg3); + getresgid(p, arg2, arg3); } void test__getresgid__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - getresgid(arg1, NULL, arg3); + getresgid(arg1, p, arg3); } void test__getresgid__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - getresgid(arg1, arg2, NULL); + getresgid(arg1, arg2, p); } void test__setresuid__noreturn() { @@ -680,8 +713,9 @@ void test__inet_aton__leakignore() { } void test__inet_aton__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - inet_aton(NULL, arg2); + inet_aton(p, arg2); } void test__inet_aton__arg1__notuninit() { @@ -691,8 +725,9 @@ void test__inet_aton__arg1__notuninit() { } void test__inet_aton__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - inet_aton(arg1, NULL); + inet_aton(arg1, p); } void test__inet_addr__noreturn() { @@ -709,8 +744,9 @@ void test__inet_addr__leakignore() { } void test__inet_addr__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - inet_addr(NULL); + inet_addr(p); } void test__inet_addr__arg1__notuninit() { @@ -733,8 +769,9 @@ void test__inet_network__leakignore() { } void test__inet_network__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - inet_network(NULL); + inet_network(p); } void test__inet_network__arg1__notuninit() { @@ -845,8 +882,9 @@ void test__inet_pton__arg1__notuninit() { } void test__inet_pton__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - inet_pton(arg1, NULL, arg3); + inet_pton(arg1, p, arg3); } void test__inet_pton__arg2__notuninit() { @@ -856,8 +894,9 @@ void test__inet_pton__arg2__notuninit() { } void test__inet_pton__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - inet_pton(arg1, arg2, NULL); + inet_pton(arg1, arg2, p); } void test__inet_ntop__noreturn() { @@ -880,8 +919,9 @@ void test__inet_ntop__arg1__notuninit() { } void test__inet_ntop__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - inet_ntop(arg1, NULL, arg3, arg4); + inet_ntop(arg1, p, arg3, arg4); } void test__inet_ntop__arg2__notuninit() { @@ -891,8 +931,9 @@ void test__inet_ntop__arg2__notuninit() { } void test__inet_ntop__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - inet_ntop(arg1, arg2, NULL, arg4); + inet_ntop(arg1, arg2, p, arg4); } void test__inet_ntop__arg4__notuninit() { @@ -920,8 +961,9 @@ void test__canonicalize_file_name__leakignore() { } void test__canonicalize_file_name__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = canonicalize_file_name(NULL); + result = canonicalize_file_name(p); } void test__execvpe__noreturn() { @@ -938,8 +980,9 @@ void test__execvpe__leakignore() { } void test__execvpe__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - execvpe(NULL, arg2, arg3); + execvpe(p, arg2, arg3); } void test__execvpe__arg1__notuninit() { @@ -974,8 +1017,9 @@ void test__mkostemp__leakignore() { } void test__mkostemp__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - mkostemp(NULL, arg2); + mkostemp(p, arg2); } void test__mkostemp__arg1__notuninit() { @@ -1004,8 +1048,9 @@ void test__mkstemps__leakignore() { } void test__mkstemps__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - mkstemps(NULL, arg2); + mkstemps(p, arg2); } void test__mkstemps__arg1__notuninit() { @@ -1034,8 +1079,9 @@ void test__mkostemps__leakignore() { } void test__mkostemps__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - mkostemps(NULL, arg2, arg3); + mkostemps(p, arg2, arg3); } void test__mkostemps__arg1__notuninit() { @@ -1075,8 +1121,9 @@ void test__memmem__leakignore() { } void test__memmem__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = memmem(NULL, arg2, arg3, arg4); + result = memmem(p, arg2, arg3, arg4); } void test__memmem__arg1__notuninit() { @@ -1092,8 +1139,9 @@ void test__memmem__arg2__notuninit() { } void test__memmem__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = memmem(arg1, arg2, NULL, arg4); + result = memmem(arg1, arg2, p, arg4); } void test__memmem__arg3__notuninit() { @@ -1122,8 +1170,9 @@ void test__memrchr__leakignore() { } void test__memrchr__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - memrchr(NULL, arg2, arg3); + memrchr(p, arg2, arg3); } void test__memrchr__arg1__notuninit() { @@ -1162,8 +1211,9 @@ void test__rawmemchr__leakignore() { } void test__rawmemchr__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - rawmemchr(NULL, arg2); + rawmemchr(p, arg2); } void test__rawmemchr__arg1__notuninit() { @@ -1250,8 +1300,9 @@ void test__strchrnul__leakignore() { } void test__strchrnul__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = strchrnul(NULL, arg2); + result = strchrnul(p, arg2); } void test__strchrnul__arg1__notuninit() { @@ -1379,8 +1430,9 @@ void test__epoll_ctl__arg4__notbool() { } void test__epoll_ctl__arg4__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - epoll_ctl(arg1, arg2, arg3, NULL); + epoll_ctl(arg1, arg2, arg3, p); } void test__epoll_wait__noreturn() { @@ -1407,8 +1459,9 @@ void test__epoll_wait__arg2__notbool() { } void test__epoll_wait__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - epoll_wait(arg1, NULL, arg3, arg4); + epoll_wait(arg1, p, arg3, arg4); } void test__epoll_wait__arg3__notbool() { @@ -1457,8 +1510,9 @@ void test__epoll_pwait__arg2__notbool() { } void test__epoll_pwait__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - epoll_pwait(arg1, NULL, arg3, arg4, arg5); + epoll_pwait(arg1, p, arg3, arg4, arg5); } void test__epoll_pwait__arg3__notbool() { @@ -1489,8 +1543,9 @@ void test__epoll_pwait__arg5__notbool() { } void test__epoll_pwait__arg5__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - epoll_pwait(arg1, arg2, arg3, arg4, NULL); + epoll_pwait(arg1, arg2, arg3, arg4, p); } void test__epoll_pwait__arg5__notuninit() { diff --git a/test/cfg/generated-cfg-tests-motif.cpp b/test/cfg/generated-cfg-tests-motif.cpp index d91bfdbbc..71eca1a53 100644 --- a/test/cfg/generated-cfg-tests-motif.cpp +++ b/test/cfg/generated-cfg-tests-motif.cpp @@ -125,8 +125,9 @@ void test__XmStringCreateLocalized__leakignore() { } void test__XmStringCreateLocalized__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = XmStringCreateLocalized(NULL); + result = XmStringCreateLocalized(p); } void test__XmStringCreateLocalized__arg1__notuninit() { @@ -154,8 +155,9 @@ void test__XmStringCreateSimple__leakignore() { } void test__XmStringCreateSimple__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = XmStringCreateSimple(NULL); + result = XmStringCreateSimple(p); } void test__XmStringCreateSimple__arg1__notuninit() { @@ -229,8 +231,9 @@ void test__XmTextGetStringWcs__arg1__notuninit() { } void test__XtAsprintf__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - XtAsprintf(arg1, NULL); + XtAsprintf(arg1, p); } void test__XtAsprintf__arg2__notuninit() { diff --git a/test/cfg/generated-cfg-tests-posix.cpp b/test/cfg/generated-cfg-tests-posix.cpp index aa4fd9a1a..6689c277d 100644 --- a/test/cfg/generated-cfg-tests-posix.cpp +++ b/test/cfg/generated-cfg-tests-posix.cpp @@ -27,8 +27,9 @@ void test__a64l__leakignore() { } void test__a64l__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = a64l(NULL); + result = a64l(p); } void test__a64l__arg1__notuninit() { @@ -111,8 +112,9 @@ void test__access__leakignore() { } void test__access__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = access(NULL, arg2); + result = access(p, arg2); } void test__access__arg1__notuninit() { @@ -204,8 +206,9 @@ void test__FD_CLR__arg1__notuninit() { } void test__FD_CLR__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - FD_CLR(arg1, NULL); + FD_CLR(arg1, p); } void test__FD_ISSET__noreturn() { @@ -228,8 +231,9 @@ void test__FD_ISSET__arg1__notuninit() { } void test__FD_ISSET__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - FD_ISSET(arg1, NULL); + FD_ISSET(arg1, p); } void test__FD_SET__noreturn() { @@ -252,8 +256,9 @@ void test__FD_SET__arg1__notuninit() { } void test__FD_SET__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - FD_SET(arg1, NULL); + FD_SET(arg1, p); } void test__FD_ZERO__noreturn() { @@ -270,8 +275,9 @@ void test__FD_ZERO__leakignore() { } void test__FD_ZERO__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - FD_ZERO(NULL); + FD_ZERO(p); } void test__fdatasync__noreturn() { @@ -317,8 +323,9 @@ void test__fnmatch__leakignore() { } void test__fnmatch__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = fnmatch(NULL, arg2, arg3); + result = fnmatch(p, arg2, arg3); } void test__fnmatch__arg1__notuninit() { @@ -328,8 +335,9 @@ void test__fnmatch__arg1__notuninit() { } void test__fnmatch__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = fnmatch(arg1, NULL, arg3); + result = fnmatch(arg1, p, arg3); } void test__fnmatch__arg2__notuninit() { @@ -377,8 +385,9 @@ void test__truncate__leakignore() { } void test__truncate__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - truncate(NULL, arg2); + truncate(p, arg2); } void test__truncate__arg1__notuninit() { @@ -457,8 +466,9 @@ void test__symlink__leakignore() { } void test__symlink__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - symlink(NULL, arg2); + symlink(p, arg2); } void test__symlink__arg1__notuninit() { @@ -468,8 +478,9 @@ void test__symlink__arg1__notuninit() { } void test__symlink__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - symlink(arg1, NULL); + symlink(arg1, p); } void test__symlink__arg2__notuninit() { @@ -486,8 +497,9 @@ void test__open__noreturn() { } void test__open__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - open(NULL, arg2, arg3); + open(p, arg2, arg3); } void test__open__arg1__notuninit() { @@ -521,8 +533,9 @@ void test__creat__useretval() { } void test__creat__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = creat(NULL, arg2); + result = creat(p, arg2); } void test__creat__arg1__notuninit() { @@ -612,8 +625,9 @@ void test__faccessat__arg1__notuninit() { } void test__faccessat__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - faccessat(arg1, NULL, arg3, arg4); + faccessat(arg1, p, arg3, arg4); } void test__faccessat__arg2__notuninit() { @@ -709,8 +723,9 @@ void test__getrpcbyname__leakignore() { } void test__getrpcbyname__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = getrpcbyname(NULL); + result = getrpcbyname(p); } void test__getrpcbyname__arg1__notuninit() { @@ -780,8 +795,9 @@ void test__getprotobyname__leakignore() { } void test__getprotobyname__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = getprotobyname(NULL); + result = getprotobyname(p); } void test__getprotobyname__arg1__notuninit() { @@ -851,8 +867,9 @@ void test__getservbyname__leakignore() { } void test__getservbyname__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = getservbyname(NULL, arg2); + result = getservbyname(p, arg2); } void test__getservbyname__arg1__notuninit() { @@ -934,8 +951,9 @@ void test__getnetbyname__leakignore() { } void test__getnetbyname__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = getnetbyname(NULL); + result = getnetbyname(p); } void test__getnetbyname__arg1__notuninit() { @@ -1011,8 +1029,9 @@ void test__gethostbyname__leakignore() { } void test__gethostbyname__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = gethostbyname(NULL); + result = gethostbyname(p); } void test__gethostbyname__arg1__notuninit() { @@ -1040,8 +1059,9 @@ void test__gethostbyname2__leakignore() { } void test__gethostbyname2__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = gethostbyname2(NULL, arg2); + result = gethostbyname2(p, arg2); } void test__gethostbyname2__arg1__notuninit() { @@ -1075,8 +1095,9 @@ void test__gethostbyaddr__leakignore() { } void test__gethostbyaddr__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = gethostbyaddr(NULL, arg2, arg3); + result = gethostbyaddr(p, arg2, arg3); } void test__gethostbyaddr__arg1__notuninit() { @@ -1111,8 +1132,9 @@ void test__brk__leakignore() { } void test__brk__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - brk(NULL); + brk(p); } void test__sbrk__noreturn() { @@ -1147,8 +1169,9 @@ void test__closedir__arg1__notbool() { } void test__closedir__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - closedir(NULL); + closedir(p); } void test__closedir__arg1__notuninit() { @@ -1165,8 +1188,9 @@ void test__strfry__noreturn() { } void test__strfry__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - strfry(NULL); + strfry(p); } void test__strsep__noreturn() { @@ -1183,8 +1207,9 @@ void test__strsep__leakignore() { } void test__strsep__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - strsep(NULL, arg2); + strsep(p, arg2); } void test__strsep__arg1__notuninit() { @@ -1194,8 +1219,9 @@ void test__strsep__arg1__notuninit() { } void test__strsep__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - strsep(arg1, NULL); + strsep(arg1, p); } void test__strsep__arg2__notuninit() { @@ -1212,8 +1238,9 @@ void test__strdup__noreturn() { } void test__strdup__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - strdup(NULL); + strdup(p); } void test__strdup__arg1__notuninit() { @@ -1230,8 +1257,9 @@ void test__strndup__noreturn() { } void test__strndup__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - strndup(NULL, arg2); + strndup(p, arg2); } void test__strndup__arg1__notuninit() { @@ -1254,8 +1282,9 @@ void test__wcsdup__noreturn() { } void test__wcsdup__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - wcsdup(NULL); + wcsdup(p); } void test__wcsdup__arg1__notuninit() { @@ -1278,8 +1307,9 @@ void test__mkstemp__leakignore() { } void test__mkstemp__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - mkstemp(NULL); + mkstemp(p); } void test__mkstemp__arg1__notuninit() { @@ -1302,8 +1332,9 @@ void test__mkdtemp__leakignore() { } void test__mkdtemp__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - mkdtemp(NULL); + mkdtemp(p); } void test__mkdtemp__arg1__notuninit() { @@ -1331,8 +1362,9 @@ void test__mktemp__leakignore() { } void test__mktemp__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = mktemp(NULL); + result = mktemp(p); } void test__mktemp__arg1__notuninit() { @@ -1380,8 +1412,9 @@ void test__mkdir__leakignore() { } void test__mkdir__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - mkdir(NULL, arg2); + mkdir(p, arg2); } void test__mkdir__arg1__notuninit() { @@ -1410,8 +1443,9 @@ void test__rmdir__leakignore() { } void test__rmdir__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - rmdir(NULL); + rmdir(p); } void test__rmdir__arg1__notuninit() { @@ -1434,8 +1468,9 @@ void test__chdir__leakignore() { } void test__chdir__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - chdir(NULL); + chdir(p); } void test__chdir__arg1__notuninit() { @@ -1458,8 +1493,9 @@ void test__chroot__leakignore() { } void test__chroot__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - chroot(NULL); + chroot(p); } void test__chroot__arg1__notuninit() { @@ -1482,8 +1518,9 @@ void test__link__leakignore() { } void test__link__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - link(NULL, arg2); + link(p, arg2); } void test__link__arg1__notuninit() { @@ -1493,8 +1530,9 @@ void test__link__arg1__notuninit() { } void test__link__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - link(arg1, NULL); + link(arg1, p); } void test__link__arg2__notuninit() { @@ -1517,8 +1555,9 @@ void test__unlink__leakignore() { } void test__unlink__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - unlink(NULL); + unlink(p); } void test__unlink__arg1__notuninit() { @@ -1541,8 +1580,9 @@ void test__rename__leakignore() { } void test__rename__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - rename(NULL); + rename(p); } void test__rename__arg1__notuninit() { @@ -1565,8 +1605,9 @@ void test__stat__leakignore() { } void test__stat__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - stat(NULL, arg2); + stat(p, arg2); } void test__stat__arg1__notuninit() { @@ -1576,8 +1617,9 @@ void test__stat__arg1__notuninit() { } void test__stat__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - stat(arg1, NULL); + stat(arg1, p); } void test__lstat__noreturn() { @@ -1594,8 +1636,9 @@ void test__lstat__leakignore() { } void test__lstat__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - lstat(NULL, arg2); + lstat(p, arg2); } void test__lstat__arg1__notuninit() { @@ -1605,8 +1648,9 @@ void test__lstat__arg1__notuninit() { } void test__lstat__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - lstat(arg1, NULL); + lstat(arg1, p); } void test__fstat__noreturn() { @@ -1629,8 +1673,9 @@ void test__fstat__arg1__notuninit() { } void test__fstat__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - fstat(arg1, NULL); + fstat(arg1, p); } void test__chmod__noreturn() { @@ -1647,8 +1692,9 @@ void test__chmod__leakignore() { } void test__chmod__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - chmod(NULL, arg2); + chmod(p, arg2); } void test__chmod__arg1__notuninit() { @@ -1702,8 +1748,9 @@ void test__chown__leakignore() { } void test__chown__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - chown(NULL, arg2, arg3); + chown(p, arg2, arg3); } void test__chown__arg1__notuninit() { @@ -1738,8 +1785,9 @@ void test__lchown__leakignore() { } void test__lchown__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - lchown(NULL, arg2, arg3); + lchown(p, arg2, arg3); } void test__lchown__arg1__notuninit() { @@ -1824,8 +1872,9 @@ void test__utime__leakignore() { } void test__utime__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - utime(NULL, arg2); + utime(p, arg2); } void test__utime__arg1__notuninit() { @@ -1854,8 +1903,9 @@ void test__utimes__leakignore() { } void test__utimes__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - utimes(NULL, arg2); + utimes(p, arg2); } void test__utimes__arg1__notuninit() { @@ -1883,8 +1933,9 @@ void test__opendir__useretval() { } void test__opendir__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = opendir(NULL); + result = opendir(p); } void test__opendir__arg1__notuninit() { @@ -1948,8 +1999,9 @@ void test__popen__useretval() { } void test__popen__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = popen(NULL, arg2); + result = popen(p, arg2); } void test__popen__arg1__notuninit() { @@ -1959,8 +2011,9 @@ void test__popen__arg1__notuninit() { } void test__popen__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = popen(arg1, NULL); + result = popen(arg1, p); } void test__popen__arg2__notuninit() { @@ -1977,8 +2030,9 @@ void test__pclose__noreturn() { } void test__pclose__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - pclose(NULL); + pclose(p); } void test__pclose__arg1__notuninit() { @@ -2127,8 +2181,9 @@ void test__pathconf__leakignore() { } void test__pathconf__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - pathconf(NULL, arg2); + pathconf(p, arg2); } void test__pathconf__arg1__notuninit() { @@ -2181,8 +2236,9 @@ void test__fdopen__arg1__notuninit() { } void test__fdopen__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = fdopen(arg1, NULL); + result = fdopen(arg1, p); } void test__fdopen__arg2__notuninit() { @@ -2224,8 +2280,9 @@ void test__rewinddir__leakignore() { } void test__rewinddir__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - rewinddir(NULL); + rewinddir(p); } void test__rewinddir__arg1__notuninit() { @@ -2248,8 +2305,9 @@ void test__seekdir__leakignore() { } void test__seekdir__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - seekdir(NULL, arg2); + seekdir(p, arg2); } void test__seekdir__arg1__notuninit() { @@ -2278,8 +2336,9 @@ void test__rand_r__leakignore() { } void test__rand_r__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - rand_r(NULL); + rand_r(p); } void test__strcasecmp__noreturn() { @@ -2301,8 +2360,9 @@ void test__strcasecmp__leakignore() { } void test__strcasecmp__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - strcasecmp(NULL, arg2); + strcasecmp(p, arg2); } void test__strcasecmp__arg1__notuninit() { @@ -2312,8 +2372,9 @@ void test__strcasecmp__arg1__notuninit() { } void test__strcasecmp__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - strcasecmp(arg1, NULL); + strcasecmp(arg1, p); } void test__strcasecmp__arg2__notuninit() { @@ -2341,8 +2402,9 @@ void test__strncasecmp__leakignore() { } void test__strncasecmp__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - strncasecmp(NULL, arg2, arg3); + strncasecmp(p, arg2, arg3); } void test__strncasecmp__arg1__notuninit() { @@ -2352,8 +2414,9 @@ void test__strncasecmp__arg1__notuninit() { } void test__strncasecmp__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - strncasecmp(arg1, NULL, arg3); + strncasecmp(arg1, p, arg3); } void test__strncasecmp__arg2__notuninit() { @@ -2634,8 +2697,9 @@ void test__munmap__noreturn() { } void test__munmap__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - munmap(NULL, arg2); + munmap(p, arg2); } void test__munmap__arg1__notuninit() { @@ -3157,8 +3221,9 @@ void test__getwd__leakignore() { } void test__getwd__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - getwd(NULL); + getwd(p); } void test__htonl__noreturn() { @@ -3247,8 +3312,9 @@ void test__mq_notify__noreturn() { } void test__mq_notify__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - mq_notify(NULL, arg2); + mq_notify(p, arg2); } void test__mq_notify__arg1__notuninit() { @@ -3337,8 +3403,9 @@ void test__mq_unlink__noreturn() { } void test__mq_unlink__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - mq_unlink(NULL); + mq_unlink(p); } void test__mq_unlink__arg1__notuninit() { @@ -3355,8 +3422,9 @@ void test__dbm_clearerr__noreturn() { } void test__dbm_clearerr__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - dbm_clearerr(NULL); + dbm_clearerr(p); } void test__dbm_clearerr__arg1__notuninit() { @@ -3373,8 +3441,9 @@ void test__dbm_close__noreturn() { } void test__dbm_close__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - dbm_close(NULL); + dbm_close(p); } void test__dbm_close__arg1__notuninit() { @@ -3391,8 +3460,9 @@ void test__dbm_delete__noreturn() { } void test__dbm_delete__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - dbm_delete(NULL, arg2); + dbm_delete(p, arg2); } void test__dbm_delete__arg1__notuninit() { @@ -3420,8 +3490,9 @@ void test__dbm_error__useretval() { } void test__dbm_error__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = dbm_error(NULL); + result = dbm_error(p); } void test__dbm_error__arg1__notuninit() { @@ -3443,8 +3514,9 @@ void test__dbm_fetch__useretval() { } void test__dbm_fetch__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = dbm_fetch(NULL, arg2); + result = dbm_fetch(p, arg2); } void test__dbm_fetch__arg1__notuninit() { @@ -3472,8 +3544,9 @@ void test__dbm_firstkey__useretval() { } void test__dbm_firstkey__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = dbm_firstkey(NULL); + result = dbm_firstkey(p); } void test__dbm_firstkey__arg1__notuninit() { @@ -3495,8 +3568,9 @@ void test__dbm_nextkey__useretval() { } void test__dbm_nextkey__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = dbm_nextkey(NULL); + result = dbm_nextkey(p); } void test__dbm_nextkey__arg1__notuninit() { @@ -3513,8 +3587,9 @@ void test__dbm_open__noreturn() { } void test__dbm_open__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - dbm_open(NULL, arg2, arg3); + dbm_open(p, arg2, arg3); } void test__dbm_open__arg1__notuninit() { @@ -3543,8 +3618,9 @@ void test__dbm_store__noreturn() { } void test__dbm_store__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - dbm_store(NULL, arg2, arg3, arg4); + dbm_store(p, arg2, arg3, arg4); } void test__dbm_store__arg1__notuninit() { @@ -3579,8 +3655,9 @@ void test__freeaddrinfo__noreturn() { } void test__freeaddrinfo__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - freeaddrinfo(NULL); + freeaddrinfo(p); } void test__freeaddrinfo__arg1__notuninit() { @@ -3648,8 +3725,9 @@ void test__uname__noreturn() { } void test__uname__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - uname(NULL); + uname(p); } void test__endpwent__noreturn() { @@ -3714,8 +3792,9 @@ void test__strtok_r__arg1__notuninit() { } void test__strtok_r__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - strtok_r(arg1, NULL, arg3); + strtok_r(arg1, p, arg3); } void test__strtok_r__arg2__notuninit() { @@ -3725,8 +3804,9 @@ void test__strtok_r__arg2__notuninit() { } void test__strtok_r__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - strtok_r(arg1, arg2, NULL); + strtok_r(arg1, arg2, p); } void test__getpwnam_r__noreturn() { @@ -3854,8 +3934,9 @@ void test__catopen__noreturn() { } void test__catopen__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - catopen(NULL, arg2); + catopen(p, arg2); } void test__catopen__arg1__notuninit() { @@ -3903,8 +3984,9 @@ void test__regcomp__noreturn() { } void test__regcomp__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - regcomp(NULL, arg2, arg3); + regcomp(p, arg2, arg3); } void test__regcomp__arg2__notuninit() { @@ -3952,8 +4034,9 @@ void test__regexec__noreturn() { } void test__regexec__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - regexec(NULL, arg2, arg3, arg4, arg5); + regexec(p, arg2, arg3, arg4, arg5); } void test__regexec__arg1__notuninit() { @@ -3963,8 +4046,9 @@ void test__regexec__arg1__notuninit() { } void test__regexec__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - regexec(arg1, NULL, arg3, arg4, arg5); + regexec(arg1, p, arg3, arg4, arg5); } void test__regexec__arg2__notuninit() { @@ -3999,8 +4083,9 @@ void test__regfree__noreturn() { } void test__regfree__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - regfree(NULL); + regfree(p); } void test__regfree__arg1__notuninit() { @@ -4049,8 +4134,9 @@ void test__sched_getparam__arg1__notuninit() { } void test__sched_getparam__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - sched_getparam(arg1, NULL); + sched_getparam(arg1, p); } void test__sched_getscheduler__noreturn() { @@ -4080,8 +4166,9 @@ void test__sched_rr_get_interval__arg1__notuninit() { } void test__sched_rr_get_interval__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - sched_rr_get_interval(arg1, NULL); + sched_rr_get_interval(arg1, p); } void test__sched_setparam__noreturn() { @@ -4155,13 +4242,15 @@ void test__ecvt__arg2__notuninit() { } void test__ecvt__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - ecvt(arg1, arg2, NULL, arg4); + ecvt(arg1, arg2, p, arg4); } void test__ecvt__arg4__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - ecvt(arg1, arg2, arg3, NULL); + ecvt(arg1, arg2, arg3, p); } void test__fcvt__noreturn() { @@ -4184,13 +4273,15 @@ void test__fcvt__arg2__notuninit() { } void test__fcvt__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - fcvt(arg1, arg2, NULL, arg4); + fcvt(arg1, arg2, p, arg4); } void test__fcvt__arg4__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - fcvt(arg1, arg2, arg3, NULL); + fcvt(arg1, arg2, arg3, p); } void test__gcvt__noreturn() { @@ -4213,8 +4304,9 @@ void test__gcvt__arg2__notuninit() { } void test__gcvt__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - gcvt(arg1, arg2, NULL); + gcvt(arg1, arg2, p); } void test__lseek__noreturn() { @@ -4262,8 +4354,9 @@ void test__nanosleep__leakignore() { } void test__nanosleep__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - nanosleep(NULL, arg2); + nanosleep(p, arg2); } void test__setkey__noreturn() { @@ -4280,8 +4373,9 @@ void test__setkey__leakignore() { } void test__setkey__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - setkey(NULL); + setkey(p); } void test__setkey__arg1__notuninit() { @@ -4304,8 +4398,9 @@ void test__getpass__leakignore() { } void test__getpass__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - getpass(NULL); + getpass(p); } void test__drand48__noreturn() { @@ -4328,8 +4423,9 @@ void test__putenv__noreturn() { } void test__putenv__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - putenv(NULL); + putenv(p); } void test__putenv__arg1__notuninit() { @@ -4346,8 +4442,9 @@ void test__setenv__noreturn() { } void test__setenv__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - setenv(NULL, arg2, arg3); + setenv(p, arg2, arg3); } void test__setenv__arg1__notuninit() { @@ -4357,8 +4454,9 @@ void test__setenv__arg1__notuninit() { } void test__setenv__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - setenv(arg1, NULL, arg3); + setenv(arg1, p, arg3); } void test__setenv__arg2__notuninit() { @@ -4381,8 +4479,9 @@ void test__unsetenv__noreturn() { } void test__unsetenv__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - unsetenv(NULL); + unsetenv(p); } void test__unsetenv__arg1__notuninit() { @@ -4405,8 +4504,9 @@ void test__localtime__leakignore() { } void test__localtime__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - localtime(NULL); + localtime(p); } void test__localtime__arg1__notuninit() { @@ -4429,8 +4529,9 @@ void test__std__localtime__leakignore() { } void test__std__localtime__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::localtime(NULL); + std::localtime(p); } void test__std__localtime__arg1__notuninit() { @@ -4453,8 +4554,9 @@ void test__localtime_r__leakignore() { } void test__localtime_r__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - localtime_r(NULL, arg2); + localtime_r(p, arg2); } void test__localtime_r__arg1__notuninit() { @@ -4464,8 +4566,9 @@ void test__localtime_r__arg1__notuninit() { } void test__localtime_r__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - localtime_r(arg1, NULL); + localtime_r(arg1, p); } void test__readdir__noreturn() { @@ -4482,8 +4585,9 @@ void test__readdir__leakignore() { } void test__readdir__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - readdir(NULL); + readdir(p); } void test__readdir__arg1__notuninit() { @@ -4506,8 +4610,9 @@ void test__readdir_r__leakignore() { } void test__readdir_r__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - readdir_r(NULL, arg2, arg3); + readdir_r(p, arg2, arg3); } void test__readdir_r__arg1__notuninit() { @@ -4517,13 +4622,15 @@ void test__readdir_r__arg1__notuninit() { } void test__readdir_r__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - readdir_r(arg1, NULL, arg3); + readdir_r(arg1, p, arg3); } void test__readdir_r__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - readdir_r(arg1, arg2, NULL); + readdir_r(arg1, arg2, p); } void test__readlink__noreturn() { @@ -4540,8 +4647,9 @@ void test__readlink__leakignore() { } void test__readlink__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - readlink(NULL, arg2, arg3); + readlink(p, arg2, arg3); } void test__readlink__arg1__notuninit() { @@ -4551,8 +4659,9 @@ void test__readlink__arg1__notuninit() { } void test__readlink__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - readlink(arg1, NULL, arg3); + readlink(arg1, p, arg3); } void test__readlink__arg3__notuninit() { @@ -4581,8 +4690,9 @@ void test__readlinkat__arg1__notuninit() { } void test__readlinkat__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - readlinkat(arg1, NULL, arg3, arg4); + readlinkat(arg1, p, arg3, arg4); } void test__readlinkat__arg2__notuninit() { @@ -4592,8 +4702,9 @@ void test__readlinkat__arg2__notuninit() { } void test__readlinkat__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - readlinkat(arg1, arg2, NULL, arg4); + readlinkat(arg1, arg2, p, arg4); } void test__readlinkat__arg4__notuninit() { @@ -4616,8 +4727,9 @@ void test__asctime_r__leakignore() { } void test__asctime_r__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - asctime_r(NULL, arg2); + asctime_r(p, arg2); } void test__asctime_r__arg1__notuninit() { @@ -4627,8 +4739,9 @@ void test__asctime_r__arg1__notuninit() { } void test__asctime_r__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - asctime_r(arg1, NULL); + asctime_r(arg1, p); } void test__ctime_r__noreturn() { @@ -4645,8 +4758,9 @@ void test__ctime_r__leakignore() { } void test__ctime_r__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - ctime_r(NULL, arg2); + ctime_r(p, arg2); } void test__ctime_r__arg1__notuninit() { @@ -4656,8 +4770,9 @@ void test__ctime_r__arg1__notuninit() { } void test__ctime_r__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - ctime_r(arg1, NULL); + ctime_r(arg1, p); } void test__gmtime_r__noreturn() { @@ -4674,8 +4789,9 @@ void test__gmtime_r__leakignore() { } void test__gmtime_r__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - gmtime_r(NULL, arg2); + gmtime_r(p, arg2); } void test__gmtime_r__arg1__notuninit() { @@ -4685,8 +4801,9 @@ void test__gmtime_r__arg1__notuninit() { } void test__gmtime_r__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - gmtime_r(arg1, NULL); + gmtime_r(arg1, p); } void test__gmtime__noreturn() { @@ -4708,8 +4825,9 @@ void test__gmtime__leakignore() { } void test__gmtime__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = gmtime(NULL); + result = gmtime(p); } void test__gmtime__arg1__notuninit() { @@ -4789,8 +4907,9 @@ void test__clock_gettime__arg1__notuninit() { } void test__clock_gettime__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - clock_gettime(arg1, NULL); + clock_gettime(arg1, p); } void test__clock_getres__noreturn() { @@ -4858,13 +4977,15 @@ void test__makecontext__leakignore() { } void test__makecontext__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - makecontext(NULL, arg2, arg3); + makecontext(p, arg2, arg3); } void test__makecontext__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - makecontext(arg1, NULL, arg3); + makecontext(arg1, p, arg3); } void test__makecontext__arg2__notuninit() { @@ -4893,13 +5014,15 @@ void test__swapcontext__leakignore() { } void test__swapcontext__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - swapcontext(NULL, arg2); + swapcontext(p, arg2); } void test__swapcontext__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - swapcontext(arg1, NULL); + swapcontext(arg1, p); } void test__getcontext__noreturn() { @@ -4916,8 +5039,9 @@ void test__getcontext__leakignore() { } void test__getcontext__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - getcontext(NULL); + getcontext(p); } void test__ualarm__noreturn() { @@ -4989,8 +5113,9 @@ void test__bcopy__leakignore() { } void test__bcopy__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - bcopy(NULL, arg2, arg3); + bcopy(p, arg2, arg3); } void test__bcopy__arg1__notuninit() { @@ -5000,8 +5125,9 @@ void test__bcopy__arg1__notuninit() { } void test__bcopy__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - bcopy(arg1, NULL, arg3); + bcopy(arg1, p, arg3); } void test__bcopy__arg3__notuninit() { @@ -5029,8 +5155,9 @@ void test__bcmp__leakignore() { } void test__bcmp__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = bcmp(NULL, arg2, arg3); + result = bcmp(p, arg2, arg3); } void test__bcmp__arg1__notuninit() { @@ -5040,8 +5167,9 @@ void test__bcmp__arg1__notuninit() { } void test__bcmp__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = bcmp(arg1, NULL, arg3); + result = bcmp(arg1, p, arg3); } void test__bcmp__arg2__notuninit() { @@ -5070,8 +5198,9 @@ void test__bzero__leakignore() { } void test__bzero__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - bzero(NULL, arg2); + bzero(p, arg2); } void test__bzero__arg2__notuninit() { @@ -5118,8 +5247,9 @@ void test__wcswcs__leakignore() { } void test__wcswcs__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = wcswcs(NULL, arg2); + result = wcswcs(p, arg2); } void test__wcswcs__arg1__notuninit() { @@ -5129,8 +5259,9 @@ void test__wcswcs__arg1__notuninit() { } void test__wcswcs__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = wcswcs(arg1, NULL); + result = wcswcs(arg1, p); } void test__wcswcs__arg2__notuninit() { @@ -5153,13 +5284,15 @@ void test__stpcpy__leakignore() { } void test__stpcpy__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - stpcpy(NULL, arg2); + stpcpy(p, arg2); } void test__stpcpy__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - stpcpy(arg1, NULL); + stpcpy(arg1, p); } void test__stpcpy__arg2__notuninit() { @@ -5187,8 +5320,9 @@ void test__index__leakignore() { } void test__index__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = index(NULL, arg2); + result = index(p, arg2); } void test__index__arg1__notuninit() { @@ -5222,8 +5356,9 @@ void test__rindex__leakignore() { } void test__rindex__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = rindex(NULL, arg2); + result = rindex(p, arg2); } void test__rindex__arg1__notuninit() { @@ -5310,13 +5445,15 @@ void test__pthread_create__noreturn() { } void test__pthread_create__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - pthread_create(NULL, arg2, arg3, arg4); + pthread_create(p, arg2, arg3, arg4); } void test__pthread_create__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - pthread_create(arg1, arg2, NULL, arg4); + pthread_create(arg1, arg2, p, arg4); } void test__pthread_detach__noreturn() { @@ -5415,8 +5552,9 @@ void test__pthread_attr_destroy__noreturn() { } void test__pthread_attr_destroy__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - pthread_attr_destroy(NULL); + pthread_attr_destroy(p); } void test__pthread_attr_init__noreturn() { @@ -5427,8 +5565,9 @@ void test__pthread_attr_init__noreturn() { } void test__pthread_attr_init__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - pthread_attr_init(NULL); + pthread_attr_init(p); } void test__pthread_attr_setstackaddr__noreturn() { @@ -5445,8 +5584,9 @@ void test__pthread_attr_setstackaddr__leakignore() { } void test__pthread_attr_setstackaddr__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - pthread_attr_setstackaddr(NULL, arg2); + pthread_attr_setstackaddr(p, arg2); } void test__pthread_attr_setstackaddr__arg1__notuninit() { @@ -5456,8 +5596,9 @@ void test__pthread_attr_setstackaddr__arg1__notuninit() { } void test__pthread_attr_setstackaddr__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - pthread_attr_setstackaddr(arg1, NULL); + pthread_attr_setstackaddr(arg1, p); } void test__pthread_attr_setstackaddr__arg2__notuninit() { @@ -5480,8 +5621,9 @@ void test__pthread_attr_getstackaddr__leakignore() { } void test__pthread_attr_getstackaddr__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - pthread_attr_getstackaddr(NULL, arg2); + pthread_attr_getstackaddr(p, arg2); } void test__pthread_attr_getstackaddr__arg1__notuninit() { @@ -5491,8 +5633,9 @@ void test__pthread_attr_getstackaddr__arg1__notuninit() { } void test__pthread_attr_getstackaddr__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - pthread_attr_getstackaddr(arg1, NULL); + pthread_attr_getstackaddr(arg1, p); } void test__tempnam__noreturn() { @@ -5544,8 +5687,9 @@ void test__crypt__leakignore() { } void test__crypt__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = crypt(NULL, arg2); + result = crypt(p, arg2); } void test__crypt__arg1__notuninit() { @@ -5555,8 +5699,9 @@ void test__crypt__arg1__notuninit() { } void test__crypt__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = crypt(arg1, NULL); + result = crypt(arg1, p); } void test__crypt__arg2__notuninit() { @@ -5608,8 +5753,9 @@ void test__getspnam__leakignore() { } void test__getspnam__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = getspnam(NULL); + result = getspnam(p); } void test__getspnam__arg1__notuninit() { @@ -5655,8 +5801,9 @@ void test__fgetspent__leakignore() { } void test__fgetspent__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = fgetspent(NULL); + result = fgetspent(p); } void test__fgetspent__arg1__notuninit() { @@ -5684,8 +5831,9 @@ void test__sgetspent__leakignore() { } void test__sgetspent__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = sgetspent(NULL); + result = sgetspent(p); } void test__sgetspent__arg1__notuninit() { @@ -5713,8 +5861,9 @@ void test__fgetpwent__leakignore() { } void test__fgetpwent__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = fgetpwent(NULL); + result = fgetpwent(p); } void test__fgetpwent__arg1__notuninit() { @@ -5790,8 +5939,9 @@ void test__fgetgrent__leakignore() { } void test__fgetgrent__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = fgetgrent(NULL); + result = fgetgrent(p); } void test__fgetgrent__arg1__notuninit() { @@ -5814,18 +5964,21 @@ void test__getnetgrent__leakignore() { } void test__getnetgrent__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - getnetgrent(NULL, arg2, arg3); + getnetgrent(p, arg2, arg3); } void test__getnetgrent__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - getnetgrent(arg1, NULL, arg3); + getnetgrent(arg1, p, arg3); } void test__getnetgrent__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - getnetgrent(arg1, arg2, NULL); + getnetgrent(arg1, arg2, p); } void test__getgrnam__noreturn() { @@ -5847,8 +6000,9 @@ void test__getgrnam__leakignore() { } void test__getgrnam__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = getgrnam(NULL); + result = getgrnam(p); } void test__getgrnam__arg1__notuninit() { @@ -5926,8 +6080,9 @@ void test__realpath__leakignore() { } void test__realpath__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - realpath(NULL, arg2); + realpath(p, arg2); } void test__realpath__arg1__notuninit() { @@ -5950,8 +6105,9 @@ void test__remove__leakignore() { } void test__remove__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - remove(NULL); + remove(p); } void test__remove__arg1__notuninit() { @@ -5979,8 +6135,9 @@ void test__fileno__leakignore() { } void test__fileno__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = fileno(NULL); + result = fileno(p); } void test__fileno__arg1__notuninit() { @@ -6003,8 +6160,9 @@ void test__fseeko__leakignore() { } void test__fseeko__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - fseeko(NULL, arg2, arg3); + fseeko(p, arg2, arg3); } void test__fseeko__arg1__notuninit() { @@ -6044,8 +6202,9 @@ void test__ftello__leakignore() { } void test__ftello__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = ftello(NULL); + result = ftello(p); } void test__ftello__arg1__notuninit() { @@ -6068,8 +6227,9 @@ void test__execv__leakignore() { } void test__execv__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - execv(NULL, arg2); + execv(p, arg2); } void test__execv__arg1__notuninit() { @@ -6098,8 +6258,9 @@ void test__execvp__leakignore() { } void test__execvp__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - execvp(NULL, arg2); + execvp(p, arg2); } void test__execvp__arg1__notuninit() { @@ -6171,8 +6332,9 @@ void test__strnlen__leakignore() { } void test__strnlen__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = strnlen(NULL, arg2); + result = strnlen(p, arg2); } void test__strnlen__arg1__notuninit() { @@ -6206,8 +6368,9 @@ void test__wcsnlen__leakignore() { } void test__wcsnlen__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = wcsnlen(NULL, arg2); + result = wcsnlen(p, arg2); } void test__wcsnlen__arg1__notuninit() { @@ -6360,8 +6523,9 @@ void test__getrlimit__arg1__notuninit() { } void test__getrlimit__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - getrlimit(arg1, NULL); + getrlimit(arg1, p); } void test__setrlimit__noreturn() { @@ -6384,8 +6548,9 @@ void test__setrlimit__arg1__notuninit() { } void test__setrlimit__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - setrlimit(arg1, NULL); + setrlimit(arg1, p); } void test__setrlimit__arg2__notuninit() { @@ -6402,8 +6567,9 @@ void test__glob__noreturn() { } void test__glob__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - glob(NULL, arg2, arg3, arg4); + glob(p, arg2, arg3, arg4); } void test__glob__arg1__notuninit() { @@ -6425,8 +6591,9 @@ void test__glob__arg3__notuninit() { } void test__glob__arg4__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - glob(arg1, arg2, arg3, NULL); + glob(arg1, arg2, arg3, p); } void test__globfree__noreturn() { @@ -6437,8 +6604,9 @@ void test__globfree__noreturn() { } void test__globfree__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - globfree(NULL); + globfree(p); } void test__globfree__arg1__notuninit() { @@ -6461,13 +6629,15 @@ void test__wcpncpy__leakignore() { } void test__wcpncpy__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - wcpncpy(NULL, arg2, arg3); + wcpncpy(p, arg2, arg3); } void test__wcpncpy__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - wcpncpy(arg1, NULL, arg3); + wcpncpy(arg1, p, arg3); } void test__wcpncpy__arg2__notuninit() { @@ -6501,13 +6671,15 @@ void test__stpncpy__leakignore() { } void test__stpncpy__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - stpncpy(NULL, arg2, arg3); + stpncpy(p, arg2, arg3); } void test__stpncpy__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - stpncpy(arg1, NULL, arg3); + stpncpy(arg1, p, arg3); } void test__stpncpy__arg2__notuninit() { @@ -6541,13 +6713,15 @@ void test__memccpy__leakignore() { } void test__memccpy__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - memccpy(NULL, arg2, arg3, arg4); + memccpy(p, arg2, arg3, arg4); } void test__memccpy__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - memccpy(arg1, NULL, arg3, arg4); + memccpy(arg1, p, arg3, arg4); } void test__memccpy__arg2__notuninit() { @@ -6588,8 +6762,9 @@ void test__getopt__arg1__notuninit() { } void test__getopt__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - getopt(arg1, NULL, arg3); + getopt(arg1, p, arg3); } void test__getopt__arg2__notuninit() { @@ -6599,8 +6774,9 @@ void test__getopt__arg2__notuninit() { } void test__getopt__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - getopt(arg1, arg2, NULL); + getopt(arg1, arg2, p); } void test__getopt__arg3__notuninit() { @@ -6629,8 +6805,9 @@ void test__getitimer__arg1__notuninit() { } void test__getitimer__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - getitimer(arg1, NULL); + getitimer(arg1, p); } void test__getitimer__arg2__notuninit() { @@ -6786,8 +6963,9 @@ void test__sigsuspend__leakignore() { } void test__sigsuspend__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - sigsuspend(NULL); + sigsuspend(p); } void test__pthread_sigmask__noreturn() { @@ -6860,8 +7038,9 @@ void test__getrusage__arg1__notuninit() { } void test__getrusage__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - getrusage(arg1, NULL); + getrusage(arg1, p); } void test__sigemptyset__noreturn() { @@ -6878,8 +7057,9 @@ void test__sigemptyset__leakignore() { } void test__sigemptyset__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - sigemptyset(NULL); + sigemptyset(p); } void test__sigfillset__noreturn() { @@ -6896,8 +7076,9 @@ void test__sigfillset__leakignore() { } void test__sigfillset__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - sigfillset(NULL); + sigfillset(p); } void test__sigaddset__noreturn() { @@ -6914,8 +7095,9 @@ void test__sigaddset__leakignore() { } void test__sigaddset__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - sigaddset(NULL, arg2); + sigaddset(p, arg2); } void test__sigaddset__arg2__notuninit() { @@ -6938,8 +7120,9 @@ void test__sigdelset__leakignore() { } void test__sigdelset__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - sigdelset(NULL, arg2); + sigdelset(p, arg2); } void test__sigdelset__arg2__notuninit() { @@ -6962,8 +7145,9 @@ void test__sigismember__leakignore() { } void test__sigismember__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - sigismember(NULL, arg2); + sigismember(p, arg2); } void test__sigismember__arg2__notuninit() { @@ -7073,8 +7257,9 @@ void test__msgrcv__arg1__notuninit() { } void test__msgrcv__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - msgrcv(arg1, NULL, arg3, arg4, arg5); + msgrcv(arg1, p, arg3, arg4, arg5); } void test__msgrcv__arg3__notuninit() { @@ -7115,8 +7300,9 @@ void test__msgsnd__arg1__notuninit() { } void test__msgsnd__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - msgsnd(arg1, NULL, arg3, arg4); + msgsnd(arg1, p, arg3, arg4); } void test__msgsnd__arg3__notuninit() { @@ -7201,8 +7387,9 @@ void test__tcsendbreak__arg1__notuninit() { } void test__tcsendbreak__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - tcsendbreak(arg1, NULL); + tcsendbreak(arg1, p); } void test__tcgetattr__noreturn() { @@ -7225,8 +7412,9 @@ void test__tcgetattr__arg1__notuninit() { } void test__tcgetattr__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - tcgetattr(arg1, NULL); + tcgetattr(arg1, p); } void test__tcsetattr__noreturn() { @@ -7255,8 +7443,9 @@ void test__tcsetattr__arg2__notuninit() { } void test__tcsetattr__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - tcsetattr(arg1, arg2, NULL); + tcsetattr(arg1, arg2, p); } void test__tcsetattr__arg3__notuninit() { @@ -7279,8 +7468,9 @@ void test__cfsetospeed__leakignore() { } void test__cfsetospeed__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - cfsetospeed(NULL, arg2); + cfsetospeed(p, arg2); } void test__cfsetospeed__arg1__notuninit() { @@ -7309,8 +7499,9 @@ void test__cfsetispeed__leakignore() { } void test__cfsetispeed__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - cfsetispeed(NULL, arg2); + cfsetispeed(p, arg2); } void test__cfsetispeed__arg1__notuninit() { diff --git a/test/cfg/generated-cfg-tests-qt.cpp b/test/cfg/generated-cfg-tests-qt.cpp index 42fd2b659..1aaf11d50 100644 --- a/test/cfg/generated-cfg-tests-qt.cpp +++ b/test/cfg/generated-cfg-tests-qt.cpp @@ -16,8 +16,9 @@ void test__connect__noreturn() { } void test__connect__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - connect(NULL, arg2, arg3, arg4); + connect(p, arg2, arg3, arg4); } void test__connect__arg1__notuninit() { @@ -33,8 +34,9 @@ void test__connect__arg2__notuninit() { } void test__connect__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - connect(arg1, arg2, NULL, arg4); + connect(arg1, arg2, p, arg4); } void test__connect__arg3__notuninit() { @@ -57,8 +59,9 @@ void test__disconnect__noreturn() { } void test__disconnect__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - disconnect(NULL, arg2, arg3, arg4); + disconnect(p, arg2, arg3, arg4); } void test__disconnect__arg1__notuninit() { @@ -74,8 +77,9 @@ void test__disconnect__arg2__notuninit() { } void test__disconnect__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - disconnect(arg1, arg2, NULL, arg4); + disconnect(arg1, arg2, p, arg4); } void test__disconnect__arg3__notuninit() { @@ -109,8 +113,9 @@ void test__tr__leakignore() { } void test__tr__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = tr(NULL, arg2, arg3); + result = tr(p, arg2, arg3); } void test__tr__arg1__notuninit() { @@ -150,8 +155,9 @@ void test__QObject__tr__leakignore() { } void test__QObject__tr__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = QObject::tr(NULL, arg2, arg3); + result = QObject::tr(p, arg2, arg3); } void test__QObject__tr__arg1__notuninit() { @@ -186,8 +192,9 @@ void test__QSettings__setValue__leakignore() { } void test__QSettings__setValue__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - QSettings::setValue(NULL, arg2); + QSettings::setValue(p, arg2); } void test__QSettings__setValue__arg1__notuninit() { @@ -215,8 +222,9 @@ void test__QSettings__value__useretval() { } void test__QSettings__value__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = QSettings::value(NULL, arg2); + result = QSettings::value(p, arg2); } void test__QSettings__value__arg1__notuninit() { @@ -1521,8 +1529,9 @@ void test__QMetaObject__connectSlotsByName__leakignore() { } void test__QMetaObject__connectSlotsByName__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - QMetaObject::connectSlotsByName(NULL); + QMetaObject::connectSlotsByName(p); } void test__QDir__fromNativeSeparators__noreturn() { diff --git a/test/cfg/generated-cfg-tests-sdl.cpp b/test/cfg/generated-cfg-tests-sdl.cpp index 60627e0da..a70b91210 100644 --- a/test/cfg/generated-cfg-tests-sdl.cpp +++ b/test/cfg/generated-cfg-tests-sdl.cpp @@ -21,8 +21,9 @@ void test__SDL_mutexP__arg1__notbool() { } void test__SDL_mutexP__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - SDL_mutexP(NULL); + SDL_mutexP(p); } void test__SDL_mutexV__noreturn() { @@ -38,8 +39,9 @@ void test__SDL_mutexV__arg1__notbool() { } void test__SDL_mutexV__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - SDL_mutexV(NULL); + SDL_mutexV(p); } void test__SDL_RWsize__noreturn() { @@ -55,8 +57,9 @@ void test__SDL_RWsize__arg1__notbool() { } void test__SDL_RWsize__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - SDL_RWsize(NULL); + SDL_RWsize(p); } void test__SDL_RWread__noreturn() { @@ -72,8 +75,9 @@ void test__SDL_RWread__arg1__notbool() { } void test__SDL_RWread__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - SDL_RWread(NULL, arg2); + SDL_RWread(p, arg2); } void test__SDL_RWread__arg2__notbool() { @@ -82,8 +86,9 @@ void test__SDL_RWread__arg2__notbool() { } void test__SDL_RWread__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - SDL_RWread(arg1, NULL); + SDL_RWread(arg1, p); } void test__IMG_isPNG__noreturn() { @@ -99,8 +104,9 @@ void test__IMG_isPNG__arg1__notbool() { } void test__IMG_isPNG__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - IMG_isPNG(NULL); + IMG_isPNG(p); } void test__IMG_isJPG__noreturn() { @@ -116,7 +122,8 @@ void test__IMG_isJPG__arg1__notbool() { } void test__IMG_isJPG__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - IMG_isJPG(NULL); + IMG_isJPG(p); } diff --git a/test/cfg/generated-cfg-tests-sfml.cpp b/test/cfg/generated-cfg-tests-sfml.cpp index e98d1b315..dc75c735e 100644 --- a/test/cfg/generated-cfg-tests-sfml.cpp +++ b/test/cfg/generated-cfg-tests-sfml.cpp @@ -162,8 +162,9 @@ void test__sf__String__find__leakignore() { } void test__sf__String__find__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - sf::String::find(NULL, arg2); + sf::String::find(p, arg2); } void test__sf__String__find__arg1__notuninit() { @@ -1501,8 +1502,9 @@ void test__sf__Window__setIcon__arg2__notuninit() { } void test__sf__Window__setIcon__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - sf::Window::setIcon(arg1, arg2, NULL); + sf::Window::setIcon(arg1, arg2, p); } void test__sf__Window__setIcon__arg3__notuninit() { @@ -1537,8 +1539,9 @@ void test__sf__RenderWindow__setIcon__arg2__notuninit() { } void test__sf__RenderWindow__setIcon__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - sf::RenderWindow::setIcon(arg1, arg2, NULL); + sf::RenderWindow::setIcon(arg1, arg2, p); } void test__sf__RenderWindow__setIcon__arg3__notuninit() { diff --git a/test/cfg/generated-cfg-tests-std.cpp b/test/cfg/generated-cfg-tests-std.cpp index 1eac5ba61..69f6bc682 100644 --- a/test/cfg/generated-cfg-tests-std.cpp +++ b/test/cfg/generated-cfg-tests-std.cpp @@ -718,8 +718,9 @@ void test__asctime__leakignore() { } void test__asctime__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = asctime(NULL); + result = asctime(p); } void test__asctime__arg1__notuninit() { @@ -747,8 +748,9 @@ void test__std__asctime__leakignore() { } void test__std__asctime__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = std::asctime(NULL); + result = std::asctime(p); } void test__std__asctime__arg1__notuninit() { @@ -2093,8 +2095,9 @@ void test__wcsftime__leakignore() { } void test__wcsftime__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - wcsftime(NULL, arg2, arg3, arg4); + wcsftime(p, arg2, arg3, arg4); } void test__wcsftime__arg2__notuninit() { @@ -2104,8 +2107,9 @@ void test__wcsftime__arg2__notuninit() { } void test__wcsftime__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - wcsftime(arg1, arg2, NULL, arg4); + wcsftime(arg1, arg2, p, arg4); } void test__wcsftime__arg3__notuninit() { @@ -2115,8 +2119,9 @@ void test__wcsftime__arg3__notuninit() { } void test__wcsftime__arg4__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - wcsftime(arg1, arg2, arg3, NULL); + wcsftime(arg1, arg2, arg3, p); } void test__wcsftime__arg4__notuninit() { @@ -2144,8 +2149,9 @@ void test__std__wcsftime__leakignore() { } void test__std__wcsftime__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::wcsftime(NULL, arg2, arg3, arg4); + std::wcsftime(p, arg2, arg3, arg4); } void test__std__wcsftime__arg2__notuninit() { @@ -2155,8 +2161,9 @@ void test__std__wcsftime__arg2__notuninit() { } void test__std__wcsftime__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::wcsftime(arg1, arg2, NULL, arg4); + std::wcsftime(arg1, arg2, p, arg4); } void test__std__wcsftime__arg3__notuninit() { @@ -2166,8 +2173,9 @@ void test__std__wcsftime__arg3__notuninit() { } void test__std__wcsftime__arg4__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::wcsftime(arg1, arg2, arg3, NULL); + std::wcsftime(arg1, arg2, arg3, p); } void test__std__wcsftime__arg4__notuninit() { @@ -2760,8 +2768,9 @@ void test__fegetenv__leakignore() { } void test__fegetenv__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - fegetenv(NULL); + fegetenv(p); } void test__std__fegetenv__noreturn() { @@ -2778,8 +2787,9 @@ void test__std__fegetenv__leakignore() { } void test__std__fegetenv__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::fegetenv(NULL); + std::fegetenv(p); } void test__fegetexceptflag__noreturn() { @@ -2796,8 +2806,9 @@ void test__fegetexceptflag__leakignore() { } void test__fegetexceptflag__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - fegetexceptflag(NULL, arg2); + fegetexceptflag(p, arg2); } void test__fegetexceptflag__arg2__notuninit() { @@ -2820,8 +2831,9 @@ void test__std__fegetexceptflag__leakignore() { } void test__std__fegetexceptflag__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::fegetexceptflag(NULL, arg2); + std::fegetexceptflag(p, arg2); } void test__std__fegetexceptflag__arg2__notuninit() { @@ -2890,8 +2902,9 @@ void test__feholdexcept__leakignore() { } void test__feholdexcept__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - feholdexcept(NULL); + feholdexcept(p); } void test__std__feholdexcept__noreturn() { @@ -2908,8 +2921,9 @@ void test__std__feholdexcept__leakignore() { } void test__std__feholdexcept__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::feholdexcept(NULL); + std::feholdexcept(p); } void test__feraiseexcept__noreturn() { @@ -2964,8 +2978,9 @@ void test__fesetenv__leakignore() { } void test__fesetenv__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - fesetenv(NULL); + fesetenv(p); } void test__fesetenv__arg1__notuninit() { @@ -2988,8 +3003,9 @@ void test__std__fesetenv__leakignore() { } void test__std__fesetenv__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::fesetenv(NULL); + std::fesetenv(p); } void test__std__fesetenv__arg1__notuninit() { @@ -3012,8 +3028,9 @@ void test__fesetexceptflag__leakignore() { } void test__fesetexceptflag__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - fesetexceptflag(NULL, arg2); + fesetexceptflag(p, arg2); } void test__fesetexceptflag__arg1__notuninit() { @@ -3042,8 +3059,9 @@ void test__std__fesetexceptflag__leakignore() { } void test__std__fesetexceptflag__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::fesetexceptflag(NULL, arg2); + std::fesetexceptflag(p, arg2); } void test__std__fesetexceptflag__arg1__notuninit() { @@ -3148,8 +3166,9 @@ void test__feupdateenv__leakignore() { } void test__feupdateenv__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - feupdateenv(NULL); + feupdateenv(p); } void test__feupdateenv__arg1__notuninit() { @@ -3172,8 +3191,9 @@ void test__std__feupdateenv__leakignore() { } void test__std__feupdateenv__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::feupdateenv(NULL); + std::feupdateenv(p); } void test__std__feupdateenv__arg1__notuninit() { @@ -4281,8 +4301,9 @@ void test__atexit__leakignore() { } void test__atexit__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - atexit(NULL); + atexit(p); } void test__std__atexit__noreturn() { @@ -4304,8 +4325,9 @@ void test__std__atexit__leakignore() { } void test__std__atexit__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::atexit(NULL); + std::atexit(p); } void test__atoi__noreturn() { @@ -4332,8 +4354,9 @@ void test__atoi__leakignore() { } void test__atoi__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = atoi(NULL); + result = atoi(p); } void test__atoi__arg1__notuninit() { @@ -4366,8 +4389,9 @@ void test__std__atoi__leakignore() { } void test__std__atoi__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = std::atoi(NULL); + result = std::atoi(p); } void test__std__atoi__arg1__notuninit() { @@ -4400,8 +4424,9 @@ void test__atol__leakignore() { } void test__atol__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = atol(NULL); + result = atol(p); } void test__atol__arg1__notuninit() { @@ -4434,8 +4459,9 @@ void test__std__atol__leakignore() { } void test__std__atol__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = std::atol(NULL); + result = std::atol(p); } void test__std__atol__arg1__notuninit() { @@ -4468,8 +4494,9 @@ void test__atoll__leakignore() { } void test__atoll__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = atoll(NULL); + result = atoll(p); } void test__atoll__arg1__notuninit() { @@ -4502,8 +4529,9 @@ void test__std__atoll__leakignore() { } void test__std__atoll__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = std::atoll(NULL); + result = std::atoll(p); } void test__std__atoll__arg1__notuninit() { @@ -4536,8 +4564,9 @@ void test__atof__leakignore() { } void test__atof__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = atof(NULL); + result = atof(p); } void test__atof__arg1__notuninit() { @@ -4570,8 +4599,9 @@ void test__std__atof__leakignore() { } void test__std__atof__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = std::atof(NULL); + result = std::atof(p); } void test__std__atof__arg1__notuninit() { @@ -5002,8 +5032,9 @@ void test__clearerr__leakignore() { } void test__clearerr__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - clearerr(NULL); + clearerr(p); } void test__clearerr__arg1__notuninit() { @@ -5026,8 +5057,9 @@ void test__std__clearerr__leakignore() { } void test__std__clearerr__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::clearerr(NULL); + std::clearerr(p); } void test__std__clearerr__arg1__notuninit() { @@ -5769,8 +5801,9 @@ void test__ctime__leakignore() { } void test__ctime__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = ctime(NULL); + result = ctime(p); } void test__ctime__arg1__notuninit() { @@ -5798,8 +5831,9 @@ void test__std__ctime__leakignore() { } void test__std__ctime__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = std::ctime(NULL); + result = std::ctime(p); } void test__std__ctime__arg1__notuninit() { @@ -7563,8 +7597,9 @@ void test__fclose__noreturn() { } void test__fclose__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - fclose(NULL); + fclose(p); } void test__fclose__arg1__notuninit() { @@ -7581,8 +7616,9 @@ void test__std__fclose__noreturn() { } void test__std__fclose__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::fclose(NULL); + std::fclose(p); } void test__std__fclose__arg1__notuninit() { @@ -7610,8 +7646,9 @@ void test__feof__leakignore() { } void test__feof__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = feof(NULL); + result = feof(p); } void test__feof__arg1__notuninit() { @@ -7639,8 +7676,9 @@ void test__std__feof__leakignore() { } void test__std__feof__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = std::feof(NULL); + result = std::feof(p); } void test__std__feof__arg1__notuninit() { @@ -7668,8 +7706,9 @@ void test__ferror__leakignore() { } void test__ferror__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = ferror(NULL); + result = ferror(p); } void test__ferror__arg1__notuninit() { @@ -7697,8 +7736,9 @@ void test__std__ferror__leakignore() { } void test__std__ferror__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = std::ferror(NULL); + result = std::ferror(p); } void test__std__ferror__arg1__notuninit() { @@ -7759,8 +7799,9 @@ void test__fgetc__leakignore() { } void test__fgetc__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - fgetc(NULL); + fgetc(p); } void test__fgetc__arg1__notuninit() { @@ -7783,8 +7824,9 @@ void test__std__fgetc__leakignore() { } void test__std__fgetc__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::fgetc(NULL); + std::fgetc(p); } void test__std__fgetc__arg1__notuninit() { @@ -7807,8 +7849,9 @@ void test__getc__leakignore() { } void test__getc__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - getc(NULL); + getc(p); } void test__getc__arg1__notuninit() { @@ -7831,8 +7874,9 @@ void test__std__getc__leakignore() { } void test__std__getc__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::getc(NULL); + std::getc(p); } void test__std__getc__arg1__notuninit() { @@ -7855,8 +7899,9 @@ void test__fgetwc__leakignore() { } void test__fgetwc__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - fgetwc(NULL); + fgetwc(p); } void test__fgetwc__arg1__notuninit() { @@ -7879,8 +7924,9 @@ void test__std__fgetwc__leakignore() { } void test__std__fgetwc__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::fgetwc(NULL); + std::fgetwc(p); } void test__std__fgetwc__arg1__notuninit() { @@ -7903,8 +7949,9 @@ void test__getwc__leakignore() { } void test__getwc__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - getwc(NULL); + getwc(p); } void test__getwc__arg1__notuninit() { @@ -7927,8 +7974,9 @@ void test__std__getwc__leakignore() { } void test__std__getwc__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::getwc(NULL); + std::getwc(p); } void test__std__getwc__arg1__notuninit() { @@ -7951,8 +7999,9 @@ void test__fgetpos__leakignore() { } void test__fgetpos__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - fgetpos(NULL, arg2); + fgetpos(p, arg2); } void test__fgetpos__arg1__notuninit() { @@ -7962,8 +8011,9 @@ void test__fgetpos__arg1__notuninit() { } void test__fgetpos__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - fgetpos(arg1, NULL); + fgetpos(arg1, p); } void test__std__fgetpos__noreturn() { @@ -7980,8 +8030,9 @@ void test__std__fgetpos__leakignore() { } void test__std__fgetpos__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::fgetpos(NULL, arg2); + std::fgetpos(p, arg2); } void test__std__fgetpos__arg1__notuninit() { @@ -7991,8 +8042,9 @@ void test__std__fgetpos__arg1__notuninit() { } void test__std__fgetpos__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::fgetpos(arg1, NULL); + std::fgetpos(arg1, p); } void test__floor__noreturn() { @@ -9058,8 +9110,9 @@ void test__fopen__useretval() { } void test__fopen__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = fopen(NULL, arg2); + result = fopen(p, arg2); } void test__fopen__arg1__notuninit() { @@ -9069,8 +9122,9 @@ void test__fopen__arg1__notuninit() { } void test__fopen__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = fopen(arg1, NULL); + result = fopen(arg1, p); } void test__fopen__arg2__notuninit() { @@ -9092,8 +9146,9 @@ void test__std__fopen__useretval() { } void test__std__fopen__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = std::fopen(NULL, arg2); + result = std::fopen(p, arg2); } void test__std__fopen__arg1__notuninit() { @@ -9103,8 +9158,9 @@ void test__std__fopen__arg1__notuninit() { } void test__std__fopen__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = std::fopen(arg1, NULL); + result = std::fopen(arg1, p); } void test__std__fopen__arg2__notuninit() { @@ -9121,13 +9177,15 @@ void test__fopen_s__noreturn() { } void test__fopen_s__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - fopen_s(NULL, arg2, arg3); + fopen_s(p, arg2, arg3); } void test__fopen_s__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - fopen_s(arg1, NULL, arg3); + fopen_s(arg1, p, arg3); } void test__fopen_s__arg2__notuninit() { @@ -9137,8 +9195,9 @@ void test__fopen_s__arg2__notuninit() { } void test__fopen_s__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - fopen_s(arg1, arg2, NULL); + fopen_s(arg1, arg2, p); } void test__fopen_s__arg3__notuninit() { @@ -9161,8 +9220,9 @@ void test__fprintf__leakignore() { } void test__fprintf__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - fprintf(NULL, arg2); + fprintf(p, arg2); } void test__fprintf__arg1__notuninit() { @@ -9191,8 +9251,9 @@ void test__std__fprintf__leakignore() { } void test__std__fprintf__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::fprintf(NULL, arg2); + std::fprintf(p, arg2); } void test__std__fprintf__arg1__notuninit() { @@ -9221,8 +9282,9 @@ void test__vfprintf__leakignore() { } void test__vfprintf__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - vfprintf(NULL, arg2, arg3); + vfprintf(p, arg2, arg3); } void test__vfprintf__arg1__notuninit() { @@ -9251,8 +9313,9 @@ void test__std__vfprintf__leakignore() { } void test__std__vfprintf__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::vfprintf(NULL, arg2, arg3); + std::vfprintf(p, arg2, arg3); } void test__std__vfprintf__arg1__notuninit() { @@ -9281,8 +9344,9 @@ void test__vfwprintf__leakignore() { } void test__vfwprintf__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - vfwprintf(NULL, arg2, arg3); + vfwprintf(p, arg2, arg3); } void test__vfwprintf__arg1__notuninit() { @@ -9311,8 +9375,9 @@ void test__std__vfwprintf__leakignore() { } void test__std__vfwprintf__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::vfwprintf(NULL, arg2, arg3); + std::vfwprintf(p, arg2, arg3); } void test__std__vfwprintf__arg1__notuninit() { @@ -9352,8 +9417,9 @@ void test__fputc__arg1__notuninit() { } void test__fputc__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - fputc(arg1, NULL); + fputc(arg1, p); } void test__fputc__arg2__notuninit() { @@ -9387,8 +9453,9 @@ void test__std__fputc__arg1__notuninit() { } void test__std__fputc__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::fputc(arg1, NULL); + std::fputc(arg1, p); } void test__std__fputc__arg2__notuninit() { @@ -9422,8 +9489,9 @@ void test__fputwc__arg1__notuninit() { } void test__fputwc__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - fputwc(arg1, NULL); + fputwc(arg1, p); } void test__fputwc__arg2__notuninit() { @@ -9457,8 +9525,9 @@ void test__std__fputwc__arg1__notuninit() { } void test__std__fputwc__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::fputwc(arg1, NULL); + std::fputwc(arg1, p); } void test__std__fputwc__arg2__notuninit() { @@ -9481,8 +9550,9 @@ void test__fputs__leakignore() { } void test__fputs__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - fputs(NULL, arg2); + fputs(p, arg2); } void test__fputs__arg1__notuninit() { @@ -9492,8 +9562,9 @@ void test__fputs__arg1__notuninit() { } void test__fputs__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - fputs(arg1, NULL); + fputs(arg1, p); } void test__fputs__arg2__notuninit() { @@ -9516,8 +9587,9 @@ void test__std__fputs__leakignore() { } void test__std__fputs__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::fputs(NULL, arg2); + std::fputs(p, arg2); } void test__std__fputs__arg1__notuninit() { @@ -9527,8 +9599,9 @@ void test__std__fputs__arg1__notuninit() { } void test__std__fputs__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::fputs(arg1, NULL); + std::fputs(arg1, p); } void test__std__fputs__arg2__notuninit() { @@ -9551,8 +9624,9 @@ void test__fputws__leakignore() { } void test__fputws__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - fputws(NULL, arg2); + fputws(p, arg2); } void test__fputws__arg1__notuninit() { @@ -9562,8 +9636,9 @@ void test__fputws__arg1__notuninit() { } void test__fputws__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - fputws(arg1, NULL); + fputws(arg1, p); } void test__fputws__arg2__notuninit() { @@ -9586,8 +9661,9 @@ void test__std__fputws__leakignore() { } void test__std__fputws__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::fputws(NULL, arg2); + std::fputws(p, arg2); } void test__std__fputws__arg1__notuninit() { @@ -9597,8 +9673,9 @@ void test__std__fputws__arg1__notuninit() { } void test__std__fputws__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::fputws(arg1, NULL); + std::fputws(arg1, p); } void test__std__fputws__arg2__notuninit() { @@ -9621,8 +9698,9 @@ void test__fread__leakignore() { } void test__fread__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - fread(NULL, arg2, arg3, arg4); + fread(p, arg2, arg3, arg4); } void test__fread__arg2__notuninit() { @@ -9638,8 +9716,9 @@ void test__fread__arg3__notuninit() { } void test__fread__arg4__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - fread(arg1, arg2, arg3, NULL); + fread(arg1, arg2, arg3, p); } void test__fread__arg4__notuninit() { @@ -9662,8 +9741,9 @@ void test__std__fread__leakignore() { } void test__std__fread__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::fread(NULL, arg2, arg3, arg4); + std::fread(p, arg2, arg3, arg4); } void test__std__fread__arg2__notuninit() { @@ -9679,8 +9759,9 @@ void test__std__fread__arg3__notuninit() { } void test__std__fread__arg4__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::fread(arg1, arg2, arg3, NULL); + std::fread(arg1, arg2, arg3, p); } void test__std__fread__arg4__notuninit() { @@ -9734,8 +9815,9 @@ void test__freopen__arg1__notuninit() { } void test__freopen__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = freopen(arg1, NULL, arg3); + result = freopen(arg1, p, arg3); } void test__freopen__arg2__notuninit() { @@ -9745,8 +9827,9 @@ void test__freopen__arg2__notuninit() { } void test__freopen__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = freopen(arg1, arg2, NULL); + result = freopen(arg1, arg2, p); } void test__freopen__arg3__notuninit() { @@ -9774,8 +9857,9 @@ void test__std__freopen__arg1__notuninit() { } void test__std__freopen__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = std::freopen(arg1, NULL, arg3); + result = std::freopen(arg1, p, arg3); } void test__std__freopen__arg2__notuninit() { @@ -9785,8 +9869,9 @@ void test__std__freopen__arg2__notuninit() { } void test__std__freopen__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = std::freopen(arg1, arg2, NULL); + result = std::freopen(arg1, arg2, p); } void test__std__freopen__arg3__notuninit() { @@ -9820,8 +9905,9 @@ void test__freopen_s__arg2__notuninit() { } void test__freopen_s__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = freopen_s(arg1, arg2, NULL, arg4); + result = freopen_s(arg1, arg2, p, arg4); } void test__freopen_s__arg3__notuninit() { @@ -9831,8 +9917,9 @@ void test__freopen_s__arg3__notuninit() { } void test__freopen_s__arg4__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = freopen_s(arg1, arg2, arg3, NULL); + result = freopen_s(arg1, arg2, arg3, p); } void test__freopen_s__arg4__notuninit() { @@ -9861,8 +9948,9 @@ void test__frexp__arg1__notuninit() { } void test__frexp__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - frexp(arg1, NULL); + frexp(arg1, p); } void test__std__frexp__noreturn() { @@ -9885,8 +9973,9 @@ void test__std__frexp__arg1__notuninit() { } void test__std__frexp__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::frexp(arg1, NULL); + std::frexp(arg1, p); } void test__frexpf__noreturn() { @@ -9909,8 +9998,9 @@ void test__frexpf__arg1__notuninit() { } void test__frexpf__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - frexpf(arg1, NULL); + frexpf(arg1, p); } void test__std__frexpf__noreturn() { @@ -9933,8 +10023,9 @@ void test__std__frexpf__arg1__notuninit() { } void test__std__frexpf__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::frexpf(arg1, NULL); + std::frexpf(arg1, p); } void test__frexpl__noreturn() { @@ -9957,8 +10048,9 @@ void test__frexpl__arg1__notuninit() { } void test__frexpl__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - frexpl(arg1, NULL); + frexpl(arg1, p); } void test__std__frexpl__noreturn() { @@ -9981,8 +10073,9 @@ void test__std__frexpl__arg1__notuninit() { } void test__std__frexpl__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::frexpl(arg1, NULL); + std::frexpl(arg1, p); } void test__hypot__noreturn() { @@ -10327,8 +10420,9 @@ void test__vfwscanf__arg1__notuninit() { } void test__vfwscanf__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - vfwscanf(arg1, NULL, arg3); + vfwscanf(arg1, p, arg3); } void test__vfwscanf__arg2__notuninit() { @@ -10357,8 +10451,9 @@ void test__std__vfwscanf__arg1__notuninit() { } void test__std__vfwscanf__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::vfwscanf(arg1, NULL, arg3); + std::vfwscanf(arg1, p, arg3); } void test__std__vfwscanf__arg2__notuninit() { @@ -10381,8 +10476,9 @@ void test__fseek__leakignore() { } void test__fseek__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - fseek(NULL, arg2, arg3); + fseek(p, arg2, arg3); } void test__fseek__arg1__notuninit() { @@ -10417,8 +10513,9 @@ void test__std__fseek__leakignore() { } void test__std__fseek__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::fseek(NULL, arg2, arg3); + std::fseek(p, arg2, arg3); } void test__std__fseek__arg1__notuninit() { @@ -10453,8 +10550,9 @@ void test__fsetpos__leakignore() { } void test__fsetpos__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - fsetpos(NULL, arg2); + fsetpos(p, arg2); } void test__fsetpos__arg1__notuninit() { @@ -10464,8 +10562,9 @@ void test__fsetpos__arg1__notuninit() { } void test__fsetpos__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - fsetpos(arg1, NULL); + fsetpos(arg1, p); } void test__fsetpos__arg2__notuninit() { @@ -10488,8 +10587,9 @@ void test__std__fsetpos__leakignore() { } void test__std__fsetpos__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::fsetpos(NULL, arg2); + std::fsetpos(p, arg2); } void test__std__fsetpos__arg1__notuninit() { @@ -10499,8 +10599,9 @@ void test__std__fsetpos__arg1__notuninit() { } void test__std__fsetpos__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::fsetpos(arg1, NULL); + std::fsetpos(arg1, p); } void test__std__fsetpos__arg2__notuninit() { @@ -10523,8 +10624,9 @@ void test__fgets__leakignore() { } void test__fgets__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - fgets(NULL, arg2, arg3); + fgets(p, arg2, arg3); } void test__fgets__arg2__notbool() { @@ -10539,8 +10641,9 @@ void test__fgets__arg2__notuninit() { } void test__fgets__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - fgets(arg1, arg2, NULL); + fgets(arg1, arg2, p); } void test__fgets__arg3__notuninit() { @@ -10563,8 +10666,9 @@ void test__std__fgets__leakignore() { } void test__std__fgets__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::fgets(NULL, arg2, arg3); + std::fgets(p, arg2, arg3); } void test__std__fgets__arg2__notbool() { @@ -10579,8 +10683,9 @@ void test__std__fgets__arg2__notuninit() { } void test__std__fgets__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::fgets(arg1, arg2, NULL); + std::fgets(arg1, arg2, p); } void test__std__fgets__arg3__notuninit() { @@ -10603,8 +10708,9 @@ void test__fgetws__leakignore() { } void test__fgetws__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - fgetws(NULL, arg2, arg3); + fgetws(p, arg2, arg3); } void test__fgetws__arg2__notbool() { @@ -10619,8 +10725,9 @@ void test__fgetws__arg2__notuninit() { } void test__fgetws__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - fgetws(arg1, arg2, NULL); + fgetws(arg1, arg2, p); } void test__fgetws__arg3__notuninit() { @@ -10643,8 +10750,9 @@ void test__std__fgetws__leakignore() { } void test__std__fgetws__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::fgetws(NULL, arg2, arg3); + std::fgetws(p, arg2, arg3); } void test__std__fgetws__arg2__notbool() { @@ -10659,8 +10767,9 @@ void test__std__fgetws__arg2__notuninit() { } void test__std__fgetws__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::fgetws(arg1, arg2, NULL); + std::fgetws(arg1, arg2, p); } void test__std__fgetws__arg3__notuninit() { @@ -10688,8 +10797,9 @@ void test__ftell__leakignore() { } void test__ftell__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = ftell(NULL); + result = ftell(p); } void test__ftell__arg1__notuninit() { @@ -10717,8 +10827,9 @@ void test__std__ftell__leakignore() { } void test__std__ftell__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = std::ftell(NULL); + result = std::ftell(p); } void test__std__ftell__arg1__notuninit() { @@ -10741,8 +10852,9 @@ void test__fwide__leakignore() { } void test__fwide__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - fwide(NULL, arg2); + fwide(p, arg2); } void test__fwide__arg1__notuninit() { @@ -10771,8 +10883,9 @@ void test__std__fwide__leakignore() { } void test__std__fwide__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::fwide(NULL, arg2); + std::fwide(p, arg2); } void test__std__fwide__arg1__notuninit() { @@ -10801,8 +10914,9 @@ void test__fwrite__leakignore() { } void test__fwrite__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - fwrite(NULL, arg2, arg3, arg4); + fwrite(p, arg2, arg3, arg4); } void test__fwrite__arg1__notuninit() { @@ -10824,8 +10938,9 @@ void test__fwrite__arg3__notuninit() { } void test__fwrite__arg4__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - fwrite(arg1, arg2, arg3, NULL); + fwrite(arg1, arg2, arg3, p); } void test__fwrite__arg4__notuninit() { @@ -10848,8 +10963,9 @@ void test__std__fwrite__leakignore() { } void test__std__fwrite__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::fwrite(NULL, arg2, arg3, arg4); + std::fwrite(p, arg2, arg3, arg4); } void test__std__fwrite__arg1__notuninit() { @@ -10871,8 +10987,9 @@ void test__std__fwrite__arg3__notuninit() { } void test__std__fwrite__arg4__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::fwrite(arg1, arg2, arg3, NULL); + std::fwrite(arg1, arg2, arg3, p); } void test__std__fwrite__arg4__notuninit() { @@ -10995,8 +11112,9 @@ void test__mbrlen__leakignore() { } void test__mbrlen__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - mbrlen(NULL, arg2, arg3); + mbrlen(p, arg2, arg3); } void test__mbrlen__arg1__notuninit() { @@ -11031,8 +11149,9 @@ void test__std__mbrlen__leakignore() { } void test__std__mbrlen__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::mbrlen(NULL, arg2, arg3); + std::mbrlen(p, arg2, arg3); } void test__std__mbrlen__arg1__notuninit() { @@ -11176,8 +11295,9 @@ void test__mbstowcs__leakignore() { } void test__mbstowcs__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - mbstowcs(arg1, NULL, arg3); + mbstowcs(arg1, p, arg3); } void test__mbstowcs__arg2__notuninit() { @@ -11206,8 +11326,9 @@ void test__std__mbstowcs__leakignore() { } void test__std__mbstowcs__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::mbstowcs(arg1, NULL, arg3); + std::mbstowcs(arg1, p, arg3); } void test__std__mbstowcs__arg2__notuninit() { @@ -11236,8 +11357,9 @@ void test__mbsrtowcs__leakignore() { } void test__mbsrtowcs__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - mbsrtowcs(arg1, NULL, arg3, arg4); + mbsrtowcs(arg1, p, arg3, arg4); } void test__mbsrtowcs__arg2__notuninit() { @@ -11253,8 +11375,9 @@ void test__mbsrtowcs__arg3__notuninit() { } void test__mbsrtowcs__arg4__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - mbsrtowcs(arg1, arg2, arg3, NULL); + mbsrtowcs(arg1, arg2, arg3, p); } void test__std__mbsrtowcs__noreturn() { @@ -11271,8 +11394,9 @@ void test__std__mbsrtowcs__leakignore() { } void test__std__mbsrtowcs__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::mbsrtowcs(arg1, NULL, arg3, arg4); + std::mbsrtowcs(arg1, p, arg3, arg4); } void test__std__mbsrtowcs__arg2__notuninit() { @@ -11288,8 +11412,9 @@ void test__std__mbsrtowcs__arg3__notuninit() { } void test__std__mbsrtowcs__arg4__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::mbsrtowcs(arg1, arg2, arg3, NULL); + std::mbsrtowcs(arg1, arg2, arg3, p); } void test__wctob__noreturn() { @@ -11414,8 +11539,9 @@ void test__wcstombs__leakignore() { } void test__wcstombs__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - wcstombs(arg1, NULL, arg3); + wcstombs(arg1, p, arg3); } void test__wcstombs__arg2__notuninit() { @@ -11444,8 +11570,9 @@ void test__std__wcstombs__leakignore() { } void test__std__wcstombs__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::wcstombs(arg1, NULL, arg3); + std::wcstombs(arg1, p, arg3); } void test__std__wcstombs__arg2__notuninit() { @@ -11493,8 +11620,9 @@ void test__ungetc__arg1__notuninit() { } void test__ungetc__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - ungetc(arg1, NULL); + ungetc(arg1, p); } void test__ungetc__arg2__notuninit() { @@ -11523,8 +11651,9 @@ void test__std__ungetc__arg1__notuninit() { } void test__std__ungetc__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::ungetc(arg1, NULL); + std::ungetc(arg1, p); } void test__std__ungetc__arg2__notuninit() { @@ -11553,8 +11682,9 @@ void test__ungetwc__arg1__notuninit() { } void test__ungetwc__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - ungetwc(arg1, NULL); + ungetwc(arg1, p); } void test__ungetwc__arg2__notuninit() { @@ -11583,8 +11713,9 @@ void test__std__ungetwc__arg1__notuninit() { } void test__std__ungetwc__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::ungetwc(arg1, NULL); + std::ungetwc(arg1, p); } void test__std__ungetwc__arg2__notuninit() { @@ -11612,8 +11743,9 @@ void test__getenv__leakignore() { } void test__getenv__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = getenv(NULL); + result = getenv(p); } void test__getenv__arg1__notuninit() { @@ -11641,8 +11773,9 @@ void test__std__getenv__leakignore() { } void test__std__getenv__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = std::getenv(NULL); + result = std::getenv(p); } void test__std__getenv__arg1__notuninit() { @@ -11665,8 +11798,9 @@ void test__gets__leakignore() { } void test__gets__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - gets(NULL); + gets(p); } void test__std__gets__noreturn() { @@ -11683,8 +11817,9 @@ void test__std__gets__leakignore() { } void test__std__gets__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::gets(NULL); + std::gets(p); } void test__gets_s__noreturn() { @@ -11701,8 +11836,9 @@ void test__gets_s__leakignore() { } void test__gets_s__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - gets_s(NULL, arg2); + gets_s(p, arg2); } void test__gets_s__arg2__notbool() { @@ -11730,8 +11866,9 @@ void test__std__gets_s__leakignore() { } void test__std__gets_s__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::gets_s(NULL, arg2); + std::gets_s(p, arg2); } void test__std__gets_s__arg2__notbool() { @@ -11769,8 +11906,9 @@ void test__gmtime__leakignore() { } void test__gmtime__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = gmtime(NULL); + result = gmtime(p); } void test__gmtime__arg1__notuninit() { @@ -11803,8 +11941,9 @@ void test__std__gmtime__leakignore() { } void test__std__gmtime__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = std::gmtime(NULL); + result = std::gmtime(p); } void test__std__gmtime__arg1__notuninit() { @@ -13485,8 +13624,9 @@ void test__wctrans__leakignore() { } void test__wctrans__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = wctrans(NULL); + result = wctrans(p); } void test__wctrans__arg1__notuninit() { @@ -13519,8 +13659,9 @@ void test__std__wctrans__leakignore() { } void test__std__wctrans__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = std::wctrans(NULL); + result = std::wctrans(p); } void test__std__wctrans__arg1__notuninit() { @@ -13553,8 +13694,9 @@ void test__wctype__leakignore() { } void test__wctype__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = wctype(NULL); + result = wctype(p); } void test__wctype__arg1__notuninit() { @@ -13587,8 +13729,9 @@ void test__std__wctype__leakignore() { } void test__std__wctype__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = std::wctype(NULL); + result = std::wctype(p); } void test__std__wctype__arg1__notuninit() { @@ -15418,8 +15561,9 @@ void test__localtime__leakignore() { } void test__localtime__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - localtime(NULL); + localtime(p); } void test__localtime__arg1__notuninit() { @@ -15442,8 +15586,9 @@ void test__std__localtime__leakignore() { } void test__std__localtime__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::localtime(NULL); + std::localtime(p); } void test__std__localtime__arg1__notuninit() { @@ -15466,13 +15611,15 @@ void test__localtime_s__leakignore() { } void test__localtime_s__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - localtime_s(NULL, arg2); + localtime_s(p, arg2); } void test__localtime_s__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - localtime_s(arg1, NULL); + localtime_s(arg1, p); } void test__std__localtime_s__noreturn() { @@ -15489,13 +15636,15 @@ void test__std__localtime_s__leakignore() { } void test__std__localtime_s__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::localtime_s(NULL, arg2); + std::localtime_s(p, arg2); } void test__std__localtime_s__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::localtime_s(arg1, NULL); + std::localtime_s(arg1, p); } void test__log__noreturn() { @@ -16508,8 +16657,9 @@ void test__nan__leakignore() { } void test__nan__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = nan(NULL); + result = nan(p); } void test__nan__arg1__notuninit() { @@ -16542,8 +16692,9 @@ void test__std__nan__leakignore() { } void test__std__nan__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = std::nan(NULL); + result = std::nan(p); } void test__std__nan__arg1__notuninit() { @@ -16576,8 +16727,9 @@ void test__nanf__leakignore() { } void test__nanf__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = nanf(NULL); + result = nanf(p); } void test__nanf__arg1__notuninit() { @@ -16610,8 +16762,9 @@ void test__std__nanf__leakignore() { } void test__std__nanf__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = std::nanf(NULL); + result = std::nanf(p); } void test__std__nanf__arg1__notuninit() { @@ -16644,8 +16797,9 @@ void test__nanl__leakignore() { } void test__nanl__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = nanl(NULL); + result = nanl(p); } void test__nanl__arg1__notuninit() { @@ -16678,8 +16832,9 @@ void test__std__nanl__leakignore() { } void test__std__nanl__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = std::nanl(NULL); + result = std::nanl(p); } void test__std__nanl__arg1__notuninit() { @@ -18292,8 +18447,9 @@ void test__memchr__leakignore() { } void test__memchr__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = memchr(NULL, arg2, arg3); + result = memchr(p, arg2, arg3); } void test__memchr__arg1__notuninit() { @@ -18348,8 +18504,9 @@ void test__std__memchr__leakignore() { } void test__std__memchr__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = std::memchr(NULL, arg2, arg3); + result = std::memchr(p, arg2, arg3); } void test__std__memchr__arg1__notuninit() { @@ -18404,8 +18561,9 @@ void test__wmemchr__leakignore() { } void test__wmemchr__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = wmemchr(NULL, arg2, arg3); + result = wmemchr(p, arg2, arg3); } void test__wmemchr__arg1__notuninit() { @@ -18460,8 +18618,9 @@ void test__std__wmemchr__leakignore() { } void test__std__wmemchr__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = std::wmemchr(NULL, arg2, arg3); + result = std::wmemchr(p, arg2, arg3); } void test__std__wmemchr__arg1__notuninit() { @@ -18516,8 +18675,9 @@ void test__memcmp__leakignore() { } void test__memcmp__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = memcmp(NULL, arg2, arg3); + result = memcmp(p, arg2, arg3); } void test__memcmp__arg1__notuninit() { @@ -18527,8 +18687,9 @@ void test__memcmp__arg1__notuninit() { } void test__memcmp__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = memcmp(arg1, NULL, arg3); + result = memcmp(arg1, p, arg3); } void test__memcmp__arg2__notuninit() { @@ -18572,8 +18733,9 @@ void test__std__memcmp__leakignore() { } void test__std__memcmp__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = std::memcmp(NULL, arg2, arg3); + result = std::memcmp(p, arg2, arg3); } void test__std__memcmp__arg1__notuninit() { @@ -18583,8 +18745,9 @@ void test__std__memcmp__arg1__notuninit() { } void test__std__memcmp__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = std::memcmp(arg1, NULL, arg3); + result = std::memcmp(arg1, p, arg3); } void test__std__memcmp__arg2__notuninit() { @@ -18628,8 +18791,9 @@ void test__wmemcmp__leakignore() { } void test__wmemcmp__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = wmemcmp(NULL, arg2, arg3); + result = wmemcmp(p, arg2, arg3); } void test__wmemcmp__arg1__notuninit() { @@ -18639,8 +18803,9 @@ void test__wmemcmp__arg1__notuninit() { } void test__wmemcmp__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = wmemcmp(arg1, NULL, arg3); + result = wmemcmp(arg1, p, arg3); } void test__wmemcmp__arg2__notuninit() { @@ -18684,8 +18849,9 @@ void test__std__wmemcmp__leakignore() { } void test__std__wmemcmp__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = std::wmemcmp(NULL, arg2, arg3); + result = std::wmemcmp(p, arg2, arg3); } void test__std__wmemcmp__arg1__notuninit() { @@ -18695,8 +18861,9 @@ void test__std__wmemcmp__arg1__notuninit() { } void test__std__wmemcmp__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = std::wmemcmp(arg1, NULL, arg3); + result = std::wmemcmp(arg1, p, arg3); } void test__std__wmemcmp__arg2__notuninit() { @@ -18730,13 +18897,15 @@ void test__memcpy__leakignore() { } void test__memcpy__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - memcpy(NULL, arg2, arg3); + memcpy(p, arg2, arg3); } void test__memcpy__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - memcpy(arg1, NULL, arg3); + memcpy(arg1, p, arg3); } void test__memcpy__arg2__notuninit() { @@ -18770,13 +18939,15 @@ void test__std__memcpy__leakignore() { } void test__std__memcpy__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::memcpy(NULL, arg2, arg3); + std::memcpy(p, arg2, arg3); } void test__std__memcpy__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::memcpy(arg1, NULL, arg3); + std::memcpy(arg1, p, arg3); } void test__std__memcpy__arg2__notuninit() { @@ -18810,13 +18981,15 @@ void test__wmemcpy__leakignore() { } void test__wmemcpy__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - wmemcpy(NULL, arg2, arg3); + wmemcpy(p, arg2, arg3); } void test__wmemcpy__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - wmemcpy(arg1, NULL, arg3); + wmemcpy(arg1, p, arg3); } void test__wmemcpy__arg2__notuninit() { @@ -18850,13 +19023,15 @@ void test__std__wmemcpy__leakignore() { } void test__std__wmemcpy__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::wmemcpy(NULL, arg2, arg3); + std::wmemcpy(p, arg2, arg3); } void test__std__wmemcpy__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::wmemcpy(arg1, NULL, arg3); + std::wmemcpy(arg1, p, arg3); } void test__std__wmemcpy__arg2__notuninit() { @@ -18890,8 +19065,9 @@ void test__memcpy_s__leakignore() { } void test__memcpy_s__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - memcpy_s(NULL, arg2, arg3, arg4); + memcpy_s(p, arg2, arg3, arg4); } void test__memcpy_s__arg2__notbool() { @@ -18906,8 +19082,9 @@ void test__memcpy_s__arg2__notuninit() { } void test__memcpy_s__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - memcpy_s(arg1, arg2, NULL, arg4); + memcpy_s(arg1, arg2, p, arg4); } void test__memcpy_s__arg3__notuninit() { @@ -18941,8 +19118,9 @@ void test__wmemcpy_s__leakignore() { } void test__wmemcpy_s__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - wmemcpy_s(NULL, arg2, arg3, arg4); + wmemcpy_s(p, arg2, arg3, arg4); } void test__wmemcpy_s__arg2__notbool() { @@ -18957,8 +19135,9 @@ void test__wmemcpy_s__arg2__notuninit() { } void test__wmemcpy_s__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - wmemcpy_s(arg1, arg2, NULL, arg4); + wmemcpy_s(arg1, arg2, p, arg4); } void test__wmemcpy_s__arg3__notuninit() { @@ -18992,13 +19171,15 @@ void test__memmove__leakignore() { } void test__memmove__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - memmove(NULL, arg2, arg3); + memmove(p, arg2, arg3); } void test__memmove__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - memmove(arg1, NULL, arg3); + memmove(arg1, p, arg3); } void test__memmove__arg2__notuninit() { @@ -19032,13 +19213,15 @@ void test__std__memmove__leakignore() { } void test__std__memmove__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::memmove(NULL, arg2, arg3); + std::memmove(p, arg2, arg3); } void test__std__memmove__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::memmove(arg1, NULL, arg3); + std::memmove(arg1, p, arg3); } void test__std__memmove__arg2__notuninit() { @@ -19072,13 +19255,15 @@ void test__wmemmove__leakignore() { } void test__wmemmove__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - wmemmove(NULL, arg2, arg3); + wmemmove(p, arg2, arg3); } void test__wmemmove__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - wmemmove(arg1, NULL, arg3); + wmemmove(arg1, p, arg3); } void test__wmemmove__arg2__notuninit() { @@ -19112,13 +19297,15 @@ void test__std__wmemmove__leakignore() { } void test__std__wmemmove__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::wmemmove(NULL, arg2, arg3); + std::wmemmove(p, arg2, arg3); } void test__std__wmemmove__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::wmemmove(arg1, NULL, arg3); + std::wmemmove(arg1, p, arg3); } void test__std__wmemmove__arg2__notuninit() { @@ -19152,8 +19339,9 @@ void test__memset_s__leakignore() { } void test__memset_s__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - memset_s(NULL, arg2, arg3, arg4); + memset_s(p, arg2, arg3, arg4); } void test__memset_s__arg2__notuninit() { @@ -19188,8 +19376,9 @@ void test__memset__leakignore() { } void test__memset__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - memset(NULL, arg2, arg3); + memset(p, arg2, arg3); } void test__memset__arg2__notuninit() { @@ -19223,8 +19412,9 @@ void test__std__memset__leakignore() { } void test__std__memset__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::memset(NULL, arg2, arg3); + std::memset(p, arg2, arg3); } void test__std__memset__arg2__notuninit() { @@ -19258,8 +19448,9 @@ void test__wmemset__leakignore() { } void test__wmemset__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - wmemset(NULL, arg2, arg3); + wmemset(p, arg2, arg3); } void test__wmemset__arg2__notuninit() { @@ -19293,8 +19484,9 @@ void test__std__wmemset__leakignore() { } void test__std__wmemset__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::wmemset(NULL, arg2, arg3); + std::wmemset(p, arg2, arg3); } void test__std__wmemset__arg2__notuninit() { @@ -19328,8 +19520,9 @@ void test__mktime__leakignore() { } void test__mktime__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - mktime(NULL); + mktime(p); } void test__mktime__arg1__notuninit() { @@ -19352,8 +19545,9 @@ void test__std__mktime__leakignore() { } void test__std__mktime__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::mktime(NULL); + std::mktime(p); } void test__std__mktime__arg1__notuninit() { @@ -19376,8 +19570,9 @@ void test__mkxtime__leakignore() { } void test__mkxtime__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - mkxtime(NULL); + mkxtime(p); } void test__mkxtime__arg1__notuninit() { @@ -19406,8 +19601,9 @@ void test__modf__arg1__notuninit() { } void test__modf__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - modf(arg1, NULL); + modf(arg1, p); } void test__std__modf__noreturn() { @@ -19430,8 +19626,9 @@ void test__std__modf__arg1__notuninit() { } void test__std__modf__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::modf(arg1, NULL); + std::modf(arg1, p); } void test__modff__noreturn() { @@ -19454,8 +19651,9 @@ void test__modff__arg1__notuninit() { } void test__modff__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - modff(arg1, NULL); + modff(arg1, p); } void test__std__modff__noreturn() { @@ -19478,8 +19676,9 @@ void test__std__modff__arg1__notuninit() { } void test__std__modff__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::modff(arg1, NULL); + std::modff(arg1, p); } void test__modfl__noreturn() { @@ -19502,8 +19701,9 @@ void test__modfl__arg1__notuninit() { } void test__modfl__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - modfl(arg1, NULL); + modfl(arg1, p); } void test__std__modfl__noreturn() { @@ -19526,8 +19726,9 @@ void test__std__modfl__arg1__notuninit() { } void test__std__modfl__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::modfl(arg1, NULL); + std::modfl(arg1, p); } void test__perror__noreturn() { @@ -20129,8 +20330,9 @@ void test__remquo__arg2__notuninit() { } void test__remquo__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = remquo(arg1, arg2, NULL); + result = remquo(arg1, arg2, p); } void test__std__remquo__noreturn() { @@ -20169,8 +20371,9 @@ void test__std__remquo__arg2__notuninit() { } void test__std__remquo__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = std::remquo(arg1, arg2, NULL); + result = std::remquo(arg1, arg2, p); } void test__remquof__noreturn() { @@ -20209,8 +20412,9 @@ void test__remquof__arg2__notuninit() { } void test__remquof__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = remquof(arg1, arg2, NULL); + result = remquof(arg1, arg2, p); } void test__std__remquof__noreturn() { @@ -20249,8 +20453,9 @@ void test__std__remquof__arg2__notuninit() { } void test__std__remquof__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = std::remquof(arg1, arg2, NULL); + result = std::remquof(arg1, arg2, p); } void test__remquol__noreturn() { @@ -20289,8 +20494,9 @@ void test__remquol__arg2__notuninit() { } void test__remquol__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = remquol(arg1, arg2, NULL); + result = remquol(arg1, arg2, p); } void test__std__remquol__noreturn() { @@ -20329,8 +20535,9 @@ void test__std__remquol__arg2__notuninit() { } void test__std__remquol__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = std::remquol(arg1, arg2, NULL); + result = std::remquol(arg1, arg2, p); } void test__printf__noreturn() { @@ -20471,8 +20678,9 @@ void test__bsearch__leakignore() { } void test__bsearch__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = bsearch(NULL, arg2, arg3, arg4, arg5); + result = bsearch(p, arg2, arg3, arg4, arg5); } void test__bsearch__arg1__notuninit() { @@ -20482,8 +20690,9 @@ void test__bsearch__arg1__notuninit() { } void test__bsearch__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = bsearch(arg1, NULL, arg3, arg4, arg5); + result = bsearch(arg1, p, arg3, arg4, arg5); } void test__bsearch__arg2__notuninit() { @@ -20505,8 +20714,9 @@ void test__bsearch__arg4__notuninit() { } void test__bsearch__arg5__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = bsearch(arg1, arg2, arg3, arg4, NULL); + result = bsearch(arg1, arg2, arg3, arg4, p); } void test__bsearch__arg5__notuninit() { @@ -20539,8 +20749,9 @@ void test__std__bsearch__leakignore() { } void test__std__bsearch__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = std::bsearch(NULL, arg2, arg3, arg4, arg5); + result = std::bsearch(p, arg2, arg3, arg4, arg5); } void test__std__bsearch__arg1__notuninit() { @@ -20550,8 +20761,9 @@ void test__std__bsearch__arg1__notuninit() { } void test__std__bsearch__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = std::bsearch(arg1, NULL, arg3, arg4, arg5); + result = std::bsearch(arg1, p, arg3, arg4, arg5); } void test__std__bsearch__arg2__notuninit() { @@ -20573,8 +20785,9 @@ void test__std__bsearch__arg4__notuninit() { } void test__std__bsearch__arg5__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = std::bsearch(arg1, arg2, arg3, arg4, NULL); + result = std::bsearch(arg1, arg2, arg3, arg4, p); } void test__std__bsearch__arg5__notuninit() { @@ -20597,8 +20810,9 @@ void test__qsort__leakignore() { } void test__qsort__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - qsort(NULL, arg2, arg3, arg4); + qsort(p, arg2, arg3, arg4); } void test__qsort__arg1__notuninit() { @@ -20620,8 +20834,9 @@ void test__qsort__arg3__notuninit() { } void test__qsort__arg4__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - qsort(arg1, arg2, arg3, NULL); + qsort(arg1, arg2, arg3, p); } void test__qsort__arg4__notuninit() { @@ -20644,8 +20859,9 @@ void test__std__qsort__leakignore() { } void test__std__qsort__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::qsort(NULL, arg2, arg3, arg4); + std::qsort(p, arg2, arg3, arg4); } void test__std__qsort__arg1__notuninit() { @@ -20667,8 +20883,9 @@ void test__std__qsort__arg3__notuninit() { } void test__std__qsort__arg4__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::qsort(arg1, arg2, arg3, NULL); + std::qsort(arg1, arg2, arg3, p); } void test__std__qsort__arg4__notuninit() { @@ -20702,8 +20919,9 @@ void test__putc__arg1__notuninit() { } void test__putc__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - putc(arg1, NULL); + putc(arg1, p); } void test__putc__arg2__notuninit() { @@ -20737,8 +20955,9 @@ void test__std__putc__arg1__notuninit() { } void test__std__putc__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::putc(arg1, NULL); + std::putc(arg1, p); } void test__std__putc__arg2__notuninit() { @@ -20767,8 +20986,9 @@ void test__putwc__arg1__notuninit() { } void test__putwc__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - putwc(arg1, NULL); + putwc(arg1, p); } void test__putwc__arg2__notuninit() { @@ -20797,8 +21017,9 @@ void test__std__putwc__arg1__notuninit() { } void test__std__putwc__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::putwc(arg1, NULL); + std::putwc(arg1, p); } void test__std__putwc__arg2__notuninit() { @@ -20912,8 +21133,9 @@ void test__puts__arg1__notbool() { } void test__puts__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - puts(NULL); + puts(p); } void test__puts__arg1__notuninit() { @@ -20941,8 +21163,9 @@ void test__std__puts__arg1__notbool() { } void test__std__puts__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::puts(NULL); + std::puts(p); } void test__std__puts__arg1__notuninit() { @@ -21003,8 +21226,9 @@ void test__remove__leakignore() { } void test__remove__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - remove(NULL); + remove(p); } void test__remove__arg1__notuninit() { @@ -21027,8 +21251,9 @@ void test__std__remove__leakignore() { } void test__std__remove__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::remove(NULL); + std::remove(p); } void test__std__remove__arg1__notuninit() { @@ -21051,8 +21276,9 @@ void test__rename__leakignore() { } void test__rename__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - rename(NULL, arg2); + rename(p, arg2); } void test__rename__arg1__notuninit() { @@ -21062,8 +21288,9 @@ void test__rename__arg1__notuninit() { } void test__rename__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - rename(arg1, NULL); + rename(arg1, p); } void test__rename__arg2__notuninit() { @@ -21086,8 +21313,9 @@ void test__std__rename__leakignore() { } void test__std__rename__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::rename(NULL, arg2); + std::rename(p, arg2); } void test__std__rename__arg1__notuninit() { @@ -21097,8 +21325,9 @@ void test__std__rename__arg1__notuninit() { } void test__std__rename__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::rename(arg1, NULL); + std::rename(arg1, p); } void test__std__rename__arg2__notuninit() { @@ -21121,8 +21350,9 @@ void test__rewind__leakignore() { } void test__rewind__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - rewind(NULL); + rewind(p); } void test__rewind__arg1__notuninit() { @@ -21145,8 +21375,9 @@ void test__std__rewind__leakignore() { } void test__std__rewind__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::rewind(NULL); + std::rewind(p); } void test__std__rewind__arg1__notuninit() { @@ -21873,8 +22104,9 @@ void test__scanf__leakignore() { } void test__scanf__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - scanf(NULL); + scanf(p); } void test__scanf__arg1__notuninit() { @@ -21897,8 +22129,9 @@ void test__std__scanf__leakignore() { } void test__std__scanf__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::scanf(NULL); + std::scanf(p); } void test__std__scanf__arg1__notuninit() { @@ -21921,8 +22154,9 @@ void test__vsscanf__leakignore() { } void test__vsscanf__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - vsscanf(NULL, arg2, arg3); + vsscanf(p, arg2, arg3); } void test__vsscanf__arg1__notuninit() { @@ -21932,8 +22166,9 @@ void test__vsscanf__arg1__notuninit() { } void test__vsscanf__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - vsscanf(arg1, NULL, arg3); + vsscanf(arg1, p, arg3); } void test__vsscanf__arg2__notuninit() { @@ -21956,8 +22191,9 @@ void test__std__vsscanf__leakignore() { } void test__std__vsscanf__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::vsscanf(NULL, arg2, arg3); + std::vsscanf(p, arg2, arg3); } void test__std__vsscanf__arg1__notuninit() { @@ -21967,8 +22203,9 @@ void test__std__vsscanf__arg1__notuninit() { } void test__std__vsscanf__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::vsscanf(arg1, NULL, arg3); + std::vsscanf(arg1, p, arg3); } void test__std__vsscanf__arg2__notuninit() { @@ -21991,8 +22228,9 @@ void test__vswscanf__leakignore() { } void test__vswscanf__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - vswscanf(NULL, arg2, arg3); + vswscanf(p, arg2, arg3); } void test__vswscanf__arg1__notuninit() { @@ -22002,8 +22240,9 @@ void test__vswscanf__arg1__notuninit() { } void test__vswscanf__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - vswscanf(arg1, NULL, arg3); + vswscanf(arg1, p, arg3); } void test__vswscanf__arg2__notuninit() { @@ -22026,8 +22265,9 @@ void test__std__vswscanf__leakignore() { } void test__std__vswscanf__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::vswscanf(NULL, arg2, arg3); + std::vswscanf(p, arg2, arg3); } void test__std__vswscanf__arg1__notuninit() { @@ -22037,8 +22277,9 @@ void test__std__vswscanf__arg1__notuninit() { } void test__std__vswscanf__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::vswscanf(arg1, NULL, arg3); + std::vswscanf(arg1, p, arg3); } void test__std__vswscanf__arg2__notuninit() { @@ -22061,8 +22302,9 @@ void test__vscanf__leakignore() { } void test__vscanf__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - vscanf(NULL, arg2); + vscanf(p, arg2); } void test__vscanf__arg1__notuninit() { @@ -22085,8 +22327,9 @@ void test__std__vscanf__leakignore() { } void test__std__vscanf__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::vscanf(NULL, arg2); + std::vscanf(p, arg2); } void test__std__vscanf__arg1__notuninit() { @@ -22109,8 +22352,9 @@ void test__vwscanf__leakignore() { } void test__vwscanf__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - vwscanf(NULL, arg2); + vwscanf(p, arg2); } void test__std__vwscanf__noreturn() { @@ -22127,8 +22371,9 @@ void test__std__vwscanf__leakignore() { } void test__std__vwscanf__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::vwscanf(NULL, arg2); + std::vwscanf(p, arg2); } void test__setbuf__noreturn() { @@ -22145,8 +22390,9 @@ void test__setbuf__leakignore() { } void test__setbuf__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - setbuf(NULL, arg2); + setbuf(p, arg2); } void test__setbuf__arg1__notuninit() { @@ -22174,8 +22420,9 @@ void test__std__setbuf__leakignore() { } void test__std__setbuf__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::setbuf(NULL, arg2); + std::setbuf(p, arg2); } void test__std__setbuf__arg1__notuninit() { @@ -22203,8 +22450,9 @@ void test__setvbuf__leakignore() { } void test__setvbuf__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - setvbuf(NULL, arg2, arg3, arg4); + setvbuf(p, arg2, arg3, arg4); } void test__setvbuf__arg1__notuninit() { @@ -22245,8 +22493,9 @@ void test__std__setvbuf__leakignore() { } void test__std__setvbuf__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::setvbuf(NULL, arg2, arg3, arg4); + std::setvbuf(p, arg2, arg3, arg4); } void test__std__setvbuf__arg1__notuninit() { @@ -22300,8 +22549,9 @@ void test__strcat__leakignore() { } void test__strcat__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - strcat(NULL, arg2); + strcat(p, arg2); } void test__strcat__arg1__notuninit() { @@ -22311,8 +22561,9 @@ void test__strcat__arg1__notuninit() { } void test__strcat__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - strcat(arg1, NULL); + strcat(arg1, p); } void test__strcat__arg2__notuninit() { @@ -22335,8 +22586,9 @@ void test__std__strcat__leakignore() { } void test__std__strcat__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::strcat(NULL, arg2); + std::strcat(p, arg2); } void test__std__strcat__arg1__notuninit() { @@ -22346,8 +22598,9 @@ void test__std__strcat__arg1__notuninit() { } void test__std__strcat__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::strcat(arg1, NULL); + std::strcat(arg1, p); } void test__std__strcat__arg2__notuninit() { @@ -22370,13 +22623,15 @@ void test__wcscat__leakignore() { } void test__wcscat__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - wcscat(NULL, arg2); + wcscat(p, arg2); } void test__wcscat__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - wcscat(arg1, NULL); + wcscat(arg1, p); } void test__wcscat__arg2__notuninit() { @@ -22399,13 +22654,15 @@ void test__std__wcscat__leakignore() { } void test__std__wcscat__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::wcscat(NULL, arg2); + std::wcscat(p, arg2); } void test__std__wcscat__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::wcscat(arg1, NULL); + std::wcscat(arg1, p); } void test__std__wcscat__arg2__notuninit() { @@ -22471,8 +22728,9 @@ void test__strchr__leakignore() { } void test__strchr__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = strchr(NULL, arg2); + result = strchr(p, arg2); } void test__strchr__arg1__notuninit() { @@ -22506,8 +22764,9 @@ void test__std__strchr__leakignore() { } void test__std__strchr__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = std::strchr(NULL, arg2); + result = std::strchr(p, arg2); } void test__std__strchr__arg1__notuninit() { @@ -22541,8 +22800,9 @@ void test__wcschr__leakignore() { } void test__wcschr__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = wcschr(NULL, arg2); + result = wcschr(p, arg2); } void test__wcschr__arg1__notuninit() { @@ -22576,8 +22836,9 @@ void test__std__wcschr__leakignore() { } void test__std__wcschr__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = std::wcschr(NULL, arg2); + result = std::wcschr(p, arg2); } void test__std__wcschr__arg1__notuninit() { @@ -22616,8 +22877,9 @@ void test__strcmp__leakignore() { } void test__strcmp__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = strcmp(NULL, arg2); + result = strcmp(p, arg2); } void test__strcmp__arg1__notuninit() { @@ -22627,8 +22889,9 @@ void test__strcmp__arg1__notuninit() { } void test__strcmp__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = strcmp(arg1, NULL); + result = strcmp(arg1, p); } void test__strcmp__arg2__notuninit() { @@ -22661,8 +22924,9 @@ void test__std__strcmp__leakignore() { } void test__std__strcmp__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = std::strcmp(NULL, arg2); + result = std::strcmp(p, arg2); } void test__std__strcmp__arg1__notuninit() { @@ -22672,8 +22936,9 @@ void test__std__strcmp__arg1__notuninit() { } void test__std__strcmp__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = std::strcmp(arg1, NULL); + result = std::strcmp(arg1, p); } void test__std__strcmp__arg2__notuninit() { @@ -22706,8 +22971,9 @@ void test__wcscmp__leakignore() { } void test__wcscmp__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = wcscmp(NULL, arg2); + result = wcscmp(p, arg2); } void test__wcscmp__arg1__notuninit() { @@ -22717,8 +22983,9 @@ void test__wcscmp__arg1__notuninit() { } void test__wcscmp__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = wcscmp(arg1, NULL); + result = wcscmp(arg1, p); } void test__wcscmp__arg2__notuninit() { @@ -22751,8 +23018,9 @@ void test__std__wcscmp__leakignore() { } void test__std__wcscmp__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = std::wcscmp(NULL, arg2); + result = std::wcscmp(p, arg2); } void test__std__wcscmp__arg1__notuninit() { @@ -22762,8 +23030,9 @@ void test__std__wcscmp__arg1__notuninit() { } void test__std__wcscmp__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = std::wcscmp(arg1, NULL); + result = std::wcscmp(arg1, p); } void test__std__wcscmp__arg2__notuninit() { @@ -22786,13 +23055,15 @@ void test__strcpy__leakignore() { } void test__strcpy__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - strcpy(NULL, arg2); + strcpy(p, arg2); } void test__strcpy__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - strcpy(arg1, NULL); + strcpy(arg1, p); } void test__strcpy__arg2__notuninit() { @@ -22815,13 +23086,15 @@ void test__std__strcpy__leakignore() { } void test__std__strcpy__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::strcpy(NULL, arg2); + std::strcpy(p, arg2); } void test__std__strcpy__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::strcpy(arg1, NULL); + std::strcpy(arg1, p); } void test__std__strcpy__arg2__notuninit() { @@ -22844,13 +23117,15 @@ void test__wcscpy__leakignore() { } void test__wcscpy__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - wcscpy(NULL, arg2); + wcscpy(p, arg2); } void test__wcscpy__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - wcscpy(arg1, NULL); + wcscpy(arg1, p); } void test__wcscpy__arg2__notuninit() { @@ -22873,13 +23148,15 @@ void test__std__wcscpy__leakignore() { } void test__std__wcscpy__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::wcscpy(NULL, arg2); + std::wcscpy(p, arg2); } void test__std__wcscpy__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::wcscpy(arg1, NULL); + std::wcscpy(arg1, p); } void test__std__wcscpy__arg2__notuninit() { @@ -22902,8 +23179,9 @@ void test__strftime__leakignore() { } void test__strftime__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - strftime(NULL, arg2, arg3, arg4); + strftime(p, arg2, arg3, arg4); } void test__strftime__arg2__notuninit() { @@ -22913,8 +23191,9 @@ void test__strftime__arg2__notuninit() { } void test__strftime__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - strftime(arg1, arg2, NULL, arg4); + strftime(arg1, arg2, p, arg4); } void test__strftime__arg3__notuninit() { @@ -22924,8 +23203,9 @@ void test__strftime__arg3__notuninit() { } void test__strftime__arg4__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - strftime(arg1, arg2, arg3, NULL); + strftime(arg1, arg2, arg3, p); } void test__strftime__arg4__notuninit() { @@ -22948,8 +23228,9 @@ void test__std__strftime__leakignore() { } void test__std__strftime__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::strftime(NULL, arg2, arg3, arg4); + std::strftime(p, arg2, arg3, arg4); } void test__std__strftime__arg2__notuninit() { @@ -22959,8 +23240,9 @@ void test__std__strftime__arg2__notuninit() { } void test__std__strftime__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::strftime(arg1, arg2, NULL, arg4); + std::strftime(arg1, arg2, p, arg4); } void test__std__strftime__arg3__notuninit() { @@ -22970,8 +23252,9 @@ void test__std__strftime__arg3__notuninit() { } void test__std__strftime__arg4__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::strftime(arg1, arg2, arg3, NULL); + std::strftime(arg1, arg2, arg3, p); } void test__std__strftime__arg4__notuninit() { @@ -22994,8 +23277,9 @@ void test__strfxtime__leakignore() { } void test__strfxtime__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - strfxtime(NULL, arg2, arg3, arg4); + strfxtime(p, arg2, arg3, arg4); } void test__strfxtime__arg2__notuninit() { @@ -23005,8 +23289,9 @@ void test__strfxtime__arg2__notuninit() { } void test__strfxtime__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - strfxtime(arg1, arg2, NULL, arg4); + strfxtime(arg1, arg2, p, arg4); } void test__strfxtime__arg3__notuninit() { @@ -23016,8 +23301,9 @@ void test__strfxtime__arg3__notuninit() { } void test__strfxtime__arg4__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - strfxtime(arg1, arg2, arg3, NULL); + strfxtime(arg1, arg2, arg3, p); } void test__strfxtime__arg4__notuninit() { @@ -23050,8 +23336,9 @@ void test__strlen__leakignore() { } void test__strlen__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = strlen(NULL); + result = strlen(p); } void test__strlen__arg1__notuninit() { @@ -23084,8 +23371,9 @@ void test__std__strlen__leakignore() { } void test__std__strlen__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = std::strlen(NULL); + result = std::strlen(p); } void test__std__strlen__arg1__notuninit() { @@ -23118,8 +23406,9 @@ void test__wcslen__leakignore() { } void test__wcslen__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = wcslen(NULL); + result = wcslen(p); } void test__wcslen__arg1__notuninit() { @@ -23152,8 +23441,9 @@ void test__std__wcslen__leakignore() { } void test__std__wcslen__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = std::wcslen(NULL); + result = std::wcslen(p); } void test__std__wcslen__arg1__notuninit() { @@ -23176,13 +23466,15 @@ void test__strncpy__leakignore() { } void test__strncpy__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - strncpy(NULL, arg2, arg3); + strncpy(p, arg2, arg3); } void test__strncpy__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - strncpy(arg1, NULL, arg3); + strncpy(arg1, p, arg3); } void test__strncpy__arg2__notuninit() { @@ -23216,13 +23508,15 @@ void test__std__strncpy__leakignore() { } void test__std__strncpy__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::strncpy(NULL, arg2, arg3); + std::strncpy(p, arg2, arg3); } void test__std__strncpy__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::strncpy(arg1, NULL, arg3); + std::strncpy(arg1, p, arg3); } void test__std__strncpy__arg2__notuninit() { @@ -23261,8 +23555,9 @@ void test__strpbrk__leakignore() { } void test__strpbrk__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = strpbrk(NULL, arg2); + result = strpbrk(p, arg2); } void test__strpbrk__arg1__notuninit() { @@ -23272,8 +23567,9 @@ void test__strpbrk__arg1__notuninit() { } void test__strpbrk__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = strpbrk(arg1, NULL); + result = strpbrk(arg1, p); } void test__strpbrk__arg2__notuninit() { @@ -23301,8 +23597,9 @@ void test__std__strpbrk__leakignore() { } void test__std__strpbrk__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = std::strpbrk(NULL, arg2); + result = std::strpbrk(p, arg2); } void test__std__strpbrk__arg1__notuninit() { @@ -23312,8 +23609,9 @@ void test__std__strpbrk__arg1__notuninit() { } void test__std__strpbrk__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = std::strpbrk(arg1, NULL); + result = std::strpbrk(arg1, p); } void test__std__strpbrk__arg2__notuninit() { @@ -23336,8 +23634,9 @@ void test__strncat__leakignore() { } void test__strncat__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - strncat(NULL, arg2, arg3); + strncat(p, arg2, arg3); } void test__strncat__arg1__notuninit() { @@ -23347,8 +23646,9 @@ void test__strncat__arg1__notuninit() { } void test__strncat__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - strncat(arg1, NULL, arg3); + strncat(arg1, p, arg3); } void test__strncat__arg2__notuninit() { @@ -23382,8 +23682,9 @@ void test__std__strncat__leakignore() { } void test__std__strncat__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::strncat(NULL, arg2, arg3); + std::strncat(p, arg2, arg3); } void test__std__strncat__arg1__notuninit() { @@ -23393,8 +23694,9 @@ void test__std__strncat__arg1__notuninit() { } void test__std__strncat__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::strncat(arg1, NULL, arg3); + std::strncat(arg1, p, arg3); } void test__std__strncat__arg2__notuninit() { @@ -23428,8 +23730,9 @@ void test__wcsncat__leakignore() { } void test__wcsncat__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - wcsncat(NULL, arg2, arg3); + wcsncat(p, arg2, arg3); } void test__wcsncat__arg1__notuninit() { @@ -23439,8 +23742,9 @@ void test__wcsncat__arg1__notuninit() { } void test__wcsncat__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - wcsncat(arg1, NULL, arg3); + wcsncat(arg1, p, arg3); } void test__wcsncat__arg2__notuninit() { @@ -23474,8 +23778,9 @@ void test__std__wcsncat__leakignore() { } void test__std__wcsncat__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::wcsncat(NULL, arg2, arg3); + std::wcsncat(p, arg2, arg3); } void test__std__wcsncat__arg1__notuninit() { @@ -23485,8 +23790,9 @@ void test__std__wcsncat__arg1__notuninit() { } void test__std__wcsncat__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::wcsncat(arg1, NULL, arg3); + std::wcsncat(arg1, p, arg3); } void test__std__wcsncat__arg2__notuninit() { @@ -23530,8 +23836,9 @@ void test__strncmp__leakignore() { } void test__strncmp__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = strncmp(NULL, arg2, arg3); + result = strncmp(p, arg2, arg3); } void test__strncmp__arg1__notuninit() { @@ -23541,8 +23848,9 @@ void test__strncmp__arg1__notuninit() { } void test__strncmp__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = strncmp(arg1, NULL, arg3); + result = strncmp(arg1, p, arg3); } void test__strncmp__arg2__notuninit() { @@ -23586,8 +23894,9 @@ void test__std__strncmp__leakignore() { } void test__std__strncmp__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = std::strncmp(NULL, arg2, arg3); + result = std::strncmp(p, arg2, arg3); } void test__std__strncmp__arg1__notuninit() { @@ -23597,8 +23906,9 @@ void test__std__strncmp__arg1__notuninit() { } void test__std__strncmp__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = std::strncmp(arg1, NULL, arg3); + result = std::strncmp(arg1, p, arg3); } void test__std__strncmp__arg2__notuninit() { @@ -23642,8 +23952,9 @@ void test__wcsncmp__leakignore() { } void test__wcsncmp__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = wcsncmp(NULL, arg2, arg3); + result = wcsncmp(p, arg2, arg3); } void test__wcsncmp__arg1__notuninit() { @@ -23653,8 +23964,9 @@ void test__wcsncmp__arg1__notuninit() { } void test__wcsncmp__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = wcsncmp(arg1, NULL, arg3); + result = wcsncmp(arg1, p, arg3); } void test__wcsncmp__arg2__notuninit() { @@ -23698,8 +24010,9 @@ void test__std__wcsncmp__leakignore() { } void test__std__wcsncmp__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = std::wcsncmp(NULL, arg2, arg3); + result = std::wcsncmp(p, arg2, arg3); } void test__std__wcsncmp__arg1__notuninit() { @@ -23709,8 +24022,9 @@ void test__std__wcsncmp__arg1__notuninit() { } void test__std__wcsncmp__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = std::wcsncmp(arg1, NULL, arg3); + result = std::wcsncmp(arg1, p, arg3); } void test__std__wcsncmp__arg2__notuninit() { @@ -23749,8 +24063,9 @@ void test__strstr__leakignore() { } void test__strstr__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = strstr(NULL, arg2); + result = strstr(p, arg2); } void test__strstr__arg1__notuninit() { @@ -23760,8 +24075,9 @@ void test__strstr__arg1__notuninit() { } void test__strstr__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = strstr(arg1, NULL); + result = strstr(arg1, p); } void test__strstr__arg2__notuninit() { @@ -23789,8 +24105,9 @@ void test__std__strstr__leakignore() { } void test__std__strstr__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = std::strstr(NULL, arg2); + result = std::strstr(p, arg2); } void test__std__strstr__arg1__notuninit() { @@ -23800,8 +24117,9 @@ void test__std__strstr__arg1__notuninit() { } void test__std__strstr__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = std::strstr(arg1, NULL); + result = std::strstr(arg1, p); } void test__std__strstr__arg2__notuninit() { @@ -23834,8 +24152,9 @@ void test__wcsstr__leakignore() { } void test__wcsstr__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = wcsstr(NULL, arg2); + result = wcsstr(p, arg2); } void test__wcsstr__arg1__notuninit() { @@ -23845,8 +24164,9 @@ void test__wcsstr__arg1__notuninit() { } void test__wcsstr__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = wcsstr(arg1, NULL); + result = wcsstr(arg1, p); } void test__wcsstr__arg2__notuninit() { @@ -23879,8 +24199,9 @@ void test__std__wcsstr__leakignore() { } void test__std__wcsstr__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = std::wcsstr(NULL, arg2); + result = std::wcsstr(p, arg2); } void test__std__wcsstr__arg1__notuninit() { @@ -23890,8 +24211,9 @@ void test__std__wcsstr__arg1__notuninit() { } void test__std__wcsstr__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = std::wcsstr(arg1, NULL); + result = std::wcsstr(arg1, p); } void test__std__wcsstr__arg2__notuninit() { @@ -23919,8 +24241,9 @@ void test__strspn__leakignore() { } void test__strspn__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = strspn(NULL, arg2); + result = strspn(p, arg2); } void test__strspn__arg1__notuninit() { @@ -23930,8 +24253,9 @@ void test__strspn__arg1__notuninit() { } void test__strspn__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = strspn(arg1, NULL); + result = strspn(arg1, p); } void test__strspn__arg2__notuninit() { @@ -23959,8 +24283,9 @@ void test__std__strspn__leakignore() { } void test__std__strspn__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = std::strspn(NULL, arg2); + result = std::strspn(p, arg2); } void test__std__strspn__arg1__notuninit() { @@ -23970,8 +24295,9 @@ void test__std__strspn__arg1__notuninit() { } void test__std__strspn__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = std::strspn(arg1, NULL); + result = std::strspn(arg1, p); } void test__std__strspn__arg2__notuninit() { @@ -23994,8 +24320,9 @@ void test__strxfrm__leakignore() { } void test__strxfrm__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - strxfrm(arg1, NULL, arg3); + strxfrm(arg1, p, arg3); } void test__strxfrm__arg2__notuninit() { @@ -24024,8 +24351,9 @@ void test__std__strxfrm__leakignore() { } void test__std__strxfrm__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::strxfrm(arg1, NULL, arg3); + std::strxfrm(arg1, p, arg3); } void test__std__strxfrm__arg2__notuninit() { @@ -24054,8 +24382,9 @@ void test__wcsxfrm__leakignore() { } void test__wcsxfrm__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - wcsxfrm(arg1, NULL, arg3); + wcsxfrm(arg1, p, arg3); } void test__wcsxfrm__arg2__notuninit() { @@ -24084,8 +24413,9 @@ void test__std__wcsxfrm__leakignore() { } void test__std__wcsxfrm__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::wcsxfrm(arg1, NULL, arg3); + std::wcsxfrm(arg1, p, arg3); } void test__std__wcsxfrm__arg2__notuninit() { @@ -24124,8 +24454,9 @@ void test__wcsspn__leakignore() { } void test__wcsspn__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = wcsspn(NULL, arg2); + result = wcsspn(p, arg2); } void test__wcsspn__arg1__notuninit() { @@ -24135,8 +24466,9 @@ void test__wcsspn__arg1__notuninit() { } void test__wcsspn__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = wcsspn(arg1, NULL); + result = wcsspn(arg1, p); } void test__wcsspn__arg2__notuninit() { @@ -24169,8 +24501,9 @@ void test__std__wcsspn__leakignore() { } void test__std__wcsspn__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = std::wcsspn(NULL, arg2); + result = std::wcsspn(p, arg2); } void test__std__wcsspn__arg1__notuninit() { @@ -24180,8 +24513,9 @@ void test__std__wcsspn__arg1__notuninit() { } void test__std__wcsspn__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = std::wcsspn(arg1, NULL); + result = std::wcsspn(arg1, p); } void test__std__wcsspn__arg2__notuninit() { @@ -24390,8 +24724,9 @@ void test__strcspn__leakignore() { } void test__strcspn__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = strcspn(NULL, arg2); + result = strcspn(p, arg2); } void test__strcspn__arg1__notuninit() { @@ -24401,8 +24736,9 @@ void test__strcspn__arg1__notuninit() { } void test__strcspn__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = strcspn(arg1, NULL); + result = strcspn(arg1, p); } void test__strcspn__arg2__notuninit() { @@ -24435,8 +24771,9 @@ void test__std__strcspn__leakignore() { } void test__std__strcspn__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = std::strcspn(NULL, arg2); + result = std::strcspn(p, arg2); } void test__std__strcspn__arg1__notuninit() { @@ -24446,8 +24783,9 @@ void test__std__strcspn__arg1__notuninit() { } void test__std__strcspn__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = std::strcspn(arg1, NULL); + result = std::strcspn(arg1, p); } void test__std__strcspn__arg2__notuninit() { @@ -24480,8 +24818,9 @@ void test__wcscspn__leakignore() { } void test__wcscspn__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = wcscspn(NULL, arg2); + result = wcscspn(p, arg2); } void test__wcscspn__arg1__notuninit() { @@ -24491,8 +24830,9 @@ void test__wcscspn__arg1__notuninit() { } void test__wcscspn__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = wcscspn(arg1, NULL); + result = wcscspn(arg1, p); } void test__wcscspn__arg2__notuninit() { @@ -24525,8 +24865,9 @@ void test__std__wcscspn__leakignore() { } void test__std__wcscspn__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = std::wcscspn(NULL, arg2); + result = std::wcscspn(p, arg2); } void test__std__wcscspn__arg1__notuninit() { @@ -24536,8 +24877,9 @@ void test__std__wcscspn__arg1__notuninit() { } void test__std__wcscspn__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = std::wcscspn(arg1, NULL); + result = std::wcscspn(arg1, p); } void test__std__wcscspn__arg2__notuninit() { @@ -24565,8 +24907,9 @@ void test__wcspbrk__leakignore() { } void test__wcspbrk__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = wcspbrk(NULL, arg2); + result = wcspbrk(p, arg2); } void test__wcspbrk__arg1__notuninit() { @@ -24600,8 +24943,9 @@ void test__std__wcspbrk__leakignore() { } void test__std__wcspbrk__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = std::wcspbrk(NULL, arg2); + result = std::wcspbrk(p, arg2); } void test__std__wcspbrk__arg1__notuninit() { @@ -24630,13 +24974,15 @@ void test__wcsncpy__leakignore() { } void test__wcsncpy__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - wcsncpy(NULL, arg2, arg3); + wcsncpy(p, arg2, arg3); } void test__wcsncpy__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - wcsncpy(arg1, NULL, arg3); + wcsncpy(arg1, p, arg3); } void test__wcsncpy__arg2__notuninit() { @@ -24670,13 +25016,15 @@ void test__std__wcsncpy__leakignore() { } void test__std__wcsncpy__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::wcsncpy(NULL, arg2, arg3); + std::wcsncpy(p, arg2, arg3); } void test__std__wcsncpy__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::wcsncpy(arg1, NULL, arg3); + std::wcsncpy(arg1, p, arg3); } void test__std__wcsncpy__arg2__notuninit() { @@ -24715,8 +25063,9 @@ void test__strcoll__leakignore() { } void test__strcoll__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = strcoll(NULL, arg2); + result = strcoll(p, arg2); } void test__strcoll__arg1__notuninit() { @@ -24726,8 +25075,9 @@ void test__strcoll__arg1__notuninit() { } void test__strcoll__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = strcoll(arg1, NULL); + result = strcoll(arg1, p); } void test__strcoll__arg2__notuninit() { @@ -24755,8 +25105,9 @@ void test__std__strcoll__leakignore() { } void test__std__strcoll__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = std::strcoll(NULL, arg2); + result = std::strcoll(p, arg2); } void test__std__strcoll__arg1__notuninit() { @@ -24766,8 +25117,9 @@ void test__std__strcoll__arg1__notuninit() { } void test__std__strcoll__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = std::strcoll(arg1, NULL); + result = std::strcoll(arg1, p); } void test__std__strcoll__arg2__notuninit() { @@ -24795,8 +25147,9 @@ void test__wcscoll__leakignore() { } void test__wcscoll__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = wcscoll(NULL, arg2); + result = wcscoll(p, arg2); } void test__wcscoll__arg1__notuninit() { @@ -24806,8 +25159,9 @@ void test__wcscoll__arg1__notuninit() { } void test__wcscoll__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = wcscoll(arg1, NULL); + result = wcscoll(arg1, p); } void test__wcscoll__arg2__notuninit() { @@ -24835,8 +25189,9 @@ void test__std__wcscoll__leakignore() { } void test__std__wcscoll__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = std::wcscoll(NULL, arg2); + result = std::wcscoll(p, arg2); } void test__std__wcscoll__arg1__notuninit() { @@ -24846,8 +25201,9 @@ void test__std__wcscoll__arg1__notuninit() { } void test__std__wcscoll__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = std::wcscoll(arg1, NULL); + result = std::wcscoll(arg1, p); } void test__std__wcscoll__arg2__notuninit() { @@ -24875,8 +25231,9 @@ void test__strrchr__leakignore() { } void test__strrchr__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = strrchr(NULL, arg2); + result = strrchr(p, arg2); } void test__strrchr__arg1__notuninit() { @@ -24910,8 +25267,9 @@ void test__std__strrchr__leakignore() { } void test__std__strrchr__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = std::strrchr(NULL, arg2); + result = std::strrchr(p, arg2); } void test__std__strrchr__arg1__notuninit() { @@ -24945,8 +25303,9 @@ void test__wcsrchr__leakignore() { } void test__wcsrchr__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = wcsrchr(NULL, arg2); + result = wcsrchr(p, arg2); } void test__wcsrchr__arg1__notuninit() { @@ -24980,8 +25339,9 @@ void test__std__wcsrchr__leakignore() { } void test__std__wcsrchr__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = std::wcsrchr(NULL, arg2); + result = std::wcsrchr(p, arg2); } void test__std__wcsrchr__arg1__notuninit() { @@ -25010,8 +25370,9 @@ void test__wcsrtombs__leakignore() { } void test__wcsrtombs__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - wcsrtombs(arg1, NULL, arg3, arg4); + wcsrtombs(arg1, p, arg3, arg4); } void test__wcsrtombs__arg2__notuninit() { @@ -25027,8 +25388,9 @@ void test__wcsrtombs__arg3__notuninit() { } void test__wcsrtombs__arg4__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - wcsrtombs(arg1, arg2, arg3, NULL); + wcsrtombs(arg1, arg2, arg3, p); } void test__std__wcsrtombs__noreturn() { @@ -25045,8 +25407,9 @@ void test__std__wcsrtombs__leakignore() { } void test__std__wcsrtombs__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::wcsrtombs(arg1, NULL, arg3, arg4); + std::wcsrtombs(arg1, p, arg3, arg4); } void test__std__wcsrtombs__arg2__notuninit() { @@ -25062,8 +25425,9 @@ void test__std__wcsrtombs__arg3__notuninit() { } void test__std__wcsrtombs__arg4__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::wcsrtombs(arg1, arg2, arg3, NULL); + std::wcsrtombs(arg1, arg2, arg3, p); } void test__strtok__noreturn() { @@ -25091,8 +25455,9 @@ void test__strtok__arg1__notuninit() { } void test__strtok__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - strtok(arg1, NULL); + strtok(arg1, p); } void test__strtok__arg2__notuninit() { @@ -25126,8 +25491,9 @@ void test__std__strtok__arg1__notuninit() { } void test__std__strtok__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::strtok(arg1, NULL); + std::strtok(arg1, p); } void test__std__strtok__arg2__notuninit() { @@ -25150,8 +25516,9 @@ void test__strtof__leakignore() { } void test__strtof__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - strtof(NULL, arg2); + strtof(p, arg2); } void test__strtof__arg1__notuninit() { @@ -25174,8 +25541,9 @@ void test__std__strtof__leakignore() { } void test__std__strtof__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::strtof(NULL, arg2); + std::strtof(p, arg2); } void test__std__strtof__arg1__notuninit() { @@ -25198,8 +25566,9 @@ void test__strtod__leakignore() { } void test__strtod__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - strtod(NULL, arg2); + strtod(p, arg2); } void test__strtod__arg1__notuninit() { @@ -25222,8 +25591,9 @@ void test__std__strtod__leakignore() { } void test__std__strtod__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::strtod(NULL, arg2); + std::strtod(p, arg2); } void test__std__strtod__arg1__notuninit() { @@ -25246,8 +25616,9 @@ void test__strtold__leakignore() { } void test__strtold__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - strtold(NULL, arg2); + strtold(p, arg2); } void test__strtold__arg1__notuninit() { @@ -25270,8 +25641,9 @@ void test__std__strtold__leakignore() { } void test__std__strtold__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::strtold(NULL, arg2); + std::strtold(p, arg2); } void test__std__strtold__arg1__notuninit() { @@ -25294,8 +25666,9 @@ void test__strtol__leakignore() { } void test__strtol__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - strtol(NULL, arg2, arg3); + strtol(p, arg2, arg3); } void test__strtol__arg1__notuninit() { @@ -25324,8 +25697,9 @@ void test__std__strtol__leakignore() { } void test__std__strtol__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::strtol(NULL, arg2, arg3); + std::strtol(p, arg2, arg3); } void test__std__strtol__arg1__notuninit() { @@ -25354,8 +25728,9 @@ void test__strtoul__leakignore() { } void test__strtoul__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - strtoul(NULL, arg2, arg3); + strtoul(p, arg2, arg3); } void test__strtoul__arg1__notuninit() { @@ -25384,8 +25759,9 @@ void test__std__strtoul__leakignore() { } void test__std__strtoul__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::strtoul(NULL, arg2, arg3); + std::strtoul(p, arg2, arg3); } void test__std__strtoul__arg1__notuninit() { @@ -25414,8 +25790,9 @@ void test__strtoll__leakignore() { } void test__strtoll__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - strtoll(NULL, arg2, arg3); + strtoll(p, arg2, arg3); } void test__strtoll__arg1__notuninit() { @@ -25444,8 +25821,9 @@ void test__std__strtoll__leakignore() { } void test__std__strtoll__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::strtoll(NULL, arg2, arg3); + std::strtoll(p, arg2, arg3); } void test__std__strtoll__arg1__notuninit() { @@ -25474,8 +25852,9 @@ void test__strtoull__leakignore() { } void test__strtoull__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - strtoull(NULL, arg2, arg3); + strtoull(p, arg2, arg3); } void test__strtoull__arg1__notuninit() { @@ -25504,8 +25883,9 @@ void test__std__strtoull__leakignore() { } void test__std__strtoull__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::strtoull(NULL, arg2, arg3); + std::strtoull(p, arg2, arg3); } void test__std__strtoull__arg1__notuninit() { @@ -25534,8 +25914,9 @@ void test__strtoimax__leakignore() { } void test__strtoimax__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - strtoimax(NULL, arg2, arg3); + strtoimax(p, arg2, arg3); } void test__strtoimax__arg1__notuninit() { @@ -25564,8 +25945,9 @@ void test__std__strtoimax__leakignore() { } void test__std__strtoimax__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::strtoimax(NULL, arg2, arg3); + std::strtoimax(p, arg2, arg3); } void test__std__strtoimax__arg1__notuninit() { @@ -25594,8 +25976,9 @@ void test__strtoumax__leakignore() { } void test__strtoumax__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - strtoumax(NULL, arg2, arg3); + strtoumax(p, arg2, arg3); } void test__strtoumax__arg1__notuninit() { @@ -25624,8 +26007,9 @@ void test__std__strtoumax__leakignore() { } void test__std__strtoumax__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::strtoumax(NULL, arg2, arg3); + std::strtoumax(p, arg2, arg3); } void test__std__strtoumax__arg1__notuninit() { @@ -25932,8 +26316,9 @@ void test__wcstof__leakignore() { } void test__wcstof__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = wcstof(NULL, arg2); + result = wcstof(p, arg2); } void test__wcstof__arg1__notuninit() { @@ -25961,8 +26346,9 @@ void test__std__wcstof__leakignore() { } void test__std__wcstof__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = std::wcstof(NULL, arg2); + result = std::wcstof(p, arg2); } void test__std__wcstof__arg1__notuninit() { @@ -25990,8 +26376,9 @@ void test__wcstod__leakignore() { } void test__wcstod__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = wcstod(NULL, arg2); + result = wcstod(p, arg2); } void test__wcstod__arg1__notuninit() { @@ -26019,8 +26406,9 @@ void test__std__wcstod__leakignore() { } void test__std__wcstod__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = std::wcstod(NULL, arg2); + result = std::wcstod(p, arg2); } void test__std__wcstod__arg1__notuninit() { @@ -26048,8 +26436,9 @@ void test__wcstold__leakignore() { } void test__wcstold__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = wcstold(NULL, arg2); + result = wcstold(p, arg2); } void test__wcstold__arg1__notuninit() { @@ -26077,8 +26466,9 @@ void test__std__wcstold__leakignore() { } void test__std__wcstold__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = std::wcstold(NULL, arg2); + result = std::wcstold(p, arg2); } void test__std__wcstold__arg1__notuninit() { @@ -26807,8 +27197,9 @@ void test__wcstok__arg1__notuninit() { } void test__wcstok__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - wcstok(arg1, NULL, arg3); + wcstok(arg1, p, arg3); } void test__wcstok__arg2__notuninit() { @@ -26818,8 +27209,9 @@ void test__wcstok__arg2__notuninit() { } void test__wcstok__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - wcstok(arg1, arg2, NULL); + wcstok(arg1, arg2, p); } void test__std__wcstok__noreturn() { @@ -26842,8 +27234,9 @@ void test__std__wcstok__arg1__notuninit() { } void test__std__wcstok__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::wcstok(arg1, NULL, arg3); + std::wcstok(arg1, p, arg3); } void test__std__wcstok__arg2__notuninit() { @@ -26853,8 +27246,9 @@ void test__std__wcstok__arg2__notuninit() { } void test__std__wcstok__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::wcstok(arg1, arg2, NULL); + std::wcstok(arg1, arg2, p); } void test__wcstoimax__noreturn() { @@ -26876,8 +27270,9 @@ void test__wcstoimax__leakignore() { } void test__wcstoimax__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = wcstoimax(NULL, arg2, arg3); + result = wcstoimax(p, arg2, arg3); } void test__wcstoimax__arg1__notuninit() { @@ -26911,8 +27306,9 @@ void test__std__wcstoimax__leakignore() { } void test__std__wcstoimax__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = std::wcstoimax(NULL, arg2, arg3); + result = std::wcstoimax(p, arg2, arg3); } void test__std__wcstoimax__arg1__notuninit() { @@ -26946,8 +27342,9 @@ void test__wcstoumax__leakignore() { } void test__wcstoumax__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = wcstoumax(NULL, arg2, arg3); + result = wcstoumax(p, arg2, arg3); } void test__wcstoumax__arg1__notuninit() { @@ -26981,8 +27378,9 @@ void test__std__wcstoumax__leakignore() { } void test__std__wcstoumax__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = std::wcstoumax(NULL, arg2, arg3); + result = std::wcstoumax(p, arg2, arg3); } void test__std__wcstoumax__arg1__notuninit() { @@ -27011,8 +27409,9 @@ void test__wcstol__leakignore() { } void test__wcstol__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - wcstol(NULL, arg2, arg3); + wcstol(p, arg2, arg3); } void test__wcstol__arg1__notuninit() { @@ -27041,8 +27440,9 @@ void test__std__wcstol__leakignore() { } void test__std__wcstol__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::wcstol(NULL, arg2, arg3); + std::wcstol(p, arg2, arg3); } void test__std__wcstol__arg1__notuninit() { @@ -27071,8 +27471,9 @@ void test__wcstoll__leakignore() { } void test__wcstoll__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - wcstoll(NULL, arg2, arg3); + wcstoll(p, arg2, arg3); } void test__wcstoll__arg1__notuninit() { @@ -27101,8 +27502,9 @@ void test__std__wcstoll__leakignore() { } void test__std__wcstoll__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::wcstoll(NULL, arg2, arg3); + std::wcstoll(p, arg2, arg3); } void test__std__wcstoll__arg1__notuninit() { @@ -27131,8 +27533,9 @@ void test__wcstoul__leakignore() { } void test__wcstoul__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - wcstoul(NULL, arg2, arg3); + wcstoul(p, arg2, arg3); } void test__wcstoul__arg1__notuninit() { @@ -27161,8 +27564,9 @@ void test__std__wcstoul__leakignore() { } void test__std__wcstoul__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::wcstoul(NULL, arg2, arg3); + std::wcstoul(p, arg2, arg3); } void test__std__wcstoul__arg1__notuninit() { @@ -27191,8 +27595,9 @@ void test__wcstoull__leakignore() { } void test__wcstoull__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - wcstoull(NULL, arg2, arg3); + wcstoull(p, arg2, arg3); } void test__wcstoull__arg1__notuninit() { @@ -27221,8 +27626,9 @@ void test__std__wcstoull__leakignore() { } void test__std__wcstoull__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::wcstoull(NULL, arg2, arg3); + std::wcstoull(p, arg2, arg3); } void test__std__wcstoull__arg1__notuninit() { @@ -27251,8 +27657,9 @@ void test__wprintf__leakignore() { } void test__wprintf__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - wprintf(NULL); + wprintf(p); } void test__std__wprintf__noreturn() { @@ -27269,8 +27676,9 @@ void test__std__wprintf__leakignore() { } void test__std__wprintf__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::wprintf(NULL); + std::wprintf(p); } void test__sprintf__noreturn() { @@ -27293,8 +27701,9 @@ void test__sprintf__arg1__notuninit() { } void test__sprintf__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - sprintf(arg1, NULL); + sprintf(arg1, p); } void test__sprintf__arg2__notuninit() { @@ -27323,8 +27732,9 @@ void test__std__sprintf__arg1__notuninit() { } void test__std__sprintf__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::sprintf(arg1, NULL); + std::sprintf(arg1, p); } void test__std__sprintf__arg2__notuninit() { @@ -27359,8 +27769,9 @@ void test__swprintf__arg2__notuninit() { } void test__swprintf__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - swprintf(arg1, arg2, NULL); + swprintf(arg1, arg2, p); } void test__swprintf__arg3__notuninit() { @@ -27395,8 +27806,9 @@ void test__std__swprintf__arg2__notuninit() { } void test__std__swprintf__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::swprintf(arg1, arg2, NULL); + std::swprintf(arg1, arg2, p); } void test__std__swprintf__arg3__notuninit() { @@ -27419,13 +27831,15 @@ void test__vsprintf__leakignore() { } void test__vsprintf__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - vsprintf(NULL, arg2, arg3); + vsprintf(p, arg2, arg3); } void test__vsprintf__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - vsprintf(arg1, NULL, arg3); + vsprintf(arg1, p, arg3); } void test__vsprintf__arg2__notuninit() { @@ -27448,13 +27862,15 @@ void test__std__vsprintf__leakignore() { } void test__std__vsprintf__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::vsprintf(NULL, arg2, arg3); + std::vsprintf(p, arg2, arg3); } void test__std__vsprintf__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::vsprintf(arg1, NULL, arg3); + std::vsprintf(arg1, p, arg3); } void test__std__vsprintf__arg2__notuninit() { @@ -27477,8 +27893,9 @@ void test__vswprintf__leakignore() { } void test__vswprintf__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - vswprintf(NULL, arg2, arg3, arg4); + vswprintf(p, arg2, arg3, arg4); } void test__vswprintf__arg2__notuninit() { @@ -27488,8 +27905,9 @@ void test__vswprintf__arg2__notuninit() { } void test__vswprintf__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - vswprintf(arg1, arg2, NULL, arg4); + vswprintf(arg1, arg2, p, arg4); } void test__vswprintf__arg3__notuninit() { @@ -27512,8 +27930,9 @@ void test__std__vswprintf__leakignore() { } void test__std__vswprintf__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::vswprintf(NULL, arg2, arg3, arg4); + std::vswprintf(p, arg2, arg3, arg4); } void test__std__vswprintf__arg2__notuninit() { @@ -27523,8 +27942,9 @@ void test__std__vswprintf__arg2__notuninit() { } void test__std__vswprintf__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::vswprintf(arg1, arg2, NULL, arg4); + std::vswprintf(arg1, arg2, p, arg4); } void test__std__vswprintf__arg3__notuninit() { @@ -27547,13 +27967,15 @@ void test__fwprintf__leakignore() { } void test__fwprintf__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - fwprintf(NULL, arg2); + fwprintf(p, arg2); } void test__fwprintf__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - fwprintf(arg1, NULL); + fwprintf(arg1, p); } void test__fwprintf__arg2__notuninit() { @@ -27576,13 +27998,15 @@ void test__std__fwprintf__leakignore() { } void test__std__fwprintf__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::fwprintf(NULL, arg2); + std::fwprintf(p, arg2); } void test__std__fwprintf__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::fwprintf(arg1, NULL); + std::fwprintf(arg1, p); } void test__std__fwprintf__arg2__notuninit() { @@ -27611,8 +28035,9 @@ void test__snprintf__arg2__notuninit() { } void test__snprintf__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - snprintf(arg1, arg2, NULL); + snprintf(arg1, arg2, p); } void test__snprintf__arg3__notuninit() { @@ -27641,8 +28066,9 @@ void test__std__snprintf__arg2__notuninit() { } void test__std__snprintf__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::snprintf(arg1, arg2, NULL); + std::snprintf(arg1, arg2, p); } void test__std__snprintf__arg3__notuninit() { @@ -27677,8 +28103,9 @@ void test__vsnprintf__arg2__notuninit() { } void test__vsnprintf__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - vsnprintf(arg1, arg2, NULL, arg4); + vsnprintf(arg1, arg2, p, arg4); } void test__vsnprintf__arg3__notuninit() { @@ -27713,8 +28140,9 @@ void test__std__vsnprintf__arg2__notuninit() { } void test__std__vsnprintf__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::vsnprintf(arg1, arg2, NULL, arg4); + std::vsnprintf(arg1, arg2, p, arg4); } void test__std__vsnprintf__arg3__notuninit() { @@ -27737,8 +28165,9 @@ void test__wscanf__leakignore() { } void test__wscanf__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - wscanf(NULL); + wscanf(p); } void test__wscanf__arg1__notuninit() { @@ -27761,8 +28190,9 @@ void test__std__wscanf__leakignore() { } void test__std__wscanf__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::wscanf(NULL); + std::wscanf(p); } void test__std__wscanf__arg1__notuninit() { @@ -27791,8 +28221,9 @@ void test__sscanf__arg1__notuninit() { } void test__sscanf__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - sscanf(arg1, NULL); + sscanf(arg1, p); } void test__sscanf__arg2__notuninit() { @@ -27821,8 +28252,9 @@ void test__std__sscanf__arg1__notuninit() { } void test__std__sscanf__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::sscanf(arg1, NULL); + std::sscanf(arg1, p); } void test__std__sscanf__arg2__notuninit() { @@ -28336,8 +28768,9 @@ void test__zonetime__leakignore() { } void test__zonetime__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = zonetime(NULL, arg2); + result = zonetime(p, arg2); } void test__zonetime__arg1__notuninit() { @@ -28372,8 +28805,9 @@ void test__c16rtomb__arg2__notuninit() { } void test__c16rtomb__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - c16rtomb(arg1, arg2, NULL); + c16rtomb(arg1, arg2, p); } void test__c16rtomb__arg3__notuninit() { @@ -28402,8 +28836,9 @@ void test__c32rtomb__arg2__notuninit() { } void test__c32rtomb__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - c32rtomb(arg1, arg2, NULL); + c32rtomb(arg1, arg2, p); } void test__c32rtomb__arg3__notuninit() { @@ -28438,8 +28873,9 @@ void test__mbrtoc16__arg3__notuninit() { } void test__mbrtoc16__arg4__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - mbrtoc16(arg1, arg2, arg3, NULL); + mbrtoc16(arg1, arg2, arg3, p); } void test__mbrtoc16__arg4__notuninit() { @@ -28474,8 +28910,9 @@ void test__mbrtoc32__arg3__notuninit() { } void test__mbrtoc32__arg4__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - mbrtoc32(arg1, arg2, arg3, NULL); + mbrtoc32(arg1, arg2, arg3, p); } void test__mbrtoc32__arg4__notuninit() { @@ -29875,8 +30312,9 @@ void test__std__basic_string__find_last_not_of__leakignore() { } void test__std__basic_string__find_last_not_of__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = std::basic_string::find_last_not_of(NULL, arg2, arg3); + result = std::basic_string::find_last_not_of(p, arg2, arg3); } void test__std__basic_string__find_last_not_of__arg1__notuninit() { @@ -29916,8 +30354,9 @@ void test__std__string__find_last_not_of__leakignore() { } void test__std__string__find_last_not_of__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = std::string::find_last_not_of(NULL, arg2, arg3); + result = std::string::find_last_not_of(p, arg2, arg3); } void test__std__string__find_last_not_of__arg1__notuninit() { @@ -29957,8 +30396,9 @@ void test__std__wstring__find_last_not_of__leakignore() { } void test__std__wstring__find_last_not_of__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = std::wstring::find_last_not_of(NULL, arg2, arg3); + result = std::wstring::find_last_not_of(p, arg2, arg3); } void test__std__wstring__find_last_not_of__arg1__notuninit() { @@ -29998,8 +30438,9 @@ void test__std__basic_string__find_first_not_of__leakignore() { } void test__std__basic_string__find_first_not_of__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = std::basic_string::find_first_not_of(NULL, arg2, arg3); + result = std::basic_string::find_first_not_of(p, arg2, arg3); } void test__std__basic_string__find_first_not_of__arg1__notuninit() { @@ -30039,8 +30480,9 @@ void test__std__string__find_first_not_of__leakignore() { } void test__std__string__find_first_not_of__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = std::string::find_first_not_of(NULL, arg2, arg3); + result = std::string::find_first_not_of(p, arg2, arg3); } void test__std__string__find_first_not_of__arg1__notuninit() { @@ -30080,8 +30522,9 @@ void test__std__wstring__find_first_not_of__leakignore() { } void test__std__wstring__find_first_not_of__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = std::wstring::find_first_not_of(NULL, arg2, arg3); + result = std::wstring::find_first_not_of(p, arg2, arg3); } void test__std__wstring__find_first_not_of__arg1__notuninit() { @@ -30121,8 +30564,9 @@ void test__std__string__find__leakignore() { } void test__std__string__find__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = std::string::find(NULL, arg2, arg3); + result = std::string::find(p, arg2, arg3); } void test__std__string__find__arg1__notuninit() { @@ -30162,8 +30606,9 @@ void test__std__string__rfind__leakignore() { } void test__std__string__rfind__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = std::string::rfind(NULL, arg2, arg3); + result = std::string::rfind(p, arg2, arg3); } void test__std__string__rfind__arg1__notuninit() { @@ -30203,8 +30648,9 @@ void test__std__wstring__find__leakignore() { } void test__std__wstring__find__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = std::wstring::find(NULL, arg2, arg3); + result = std::wstring::find(p, arg2, arg3); } void test__std__wstring__find__arg1__notuninit() { @@ -30244,8 +30690,9 @@ void test__std__wstring__rfind__leakignore() { } void test__std__wstring__rfind__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = std::wstring::rfind(NULL, arg2, arg3); + result = std::wstring::rfind(p, arg2, arg3); } void test__std__wstring__rfind__arg1__notuninit() { @@ -30285,8 +30732,9 @@ void test__std__basic_string__find__leakignore() { } void test__std__basic_string__find__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = std::basic_string::find(NULL, arg2, arg3); + result = std::basic_string::find(p, arg2, arg3); } void test__std__basic_string__find__arg1__notuninit() { @@ -30326,8 +30774,9 @@ void test__std__basic_string__rfind__leakignore() { } void test__std__basic_string__rfind__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = std::basic_string::rfind(NULL, arg2, arg3); + result = std::basic_string::rfind(p, arg2, arg3); } void test__std__basic_string__rfind__arg1__notuninit() { @@ -30367,8 +30816,9 @@ void test__std__string__find_first_of__leakignore() { } void test__std__string__find_first_of__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = std::string::find_first_of(NULL, arg2, arg3); + result = std::string::find_first_of(p, arg2, arg3); } void test__std__string__find_first_of__arg1__notuninit() { @@ -30408,8 +30858,9 @@ void test__std__wstring__find_first_of__leakignore() { } void test__std__wstring__find_first_of__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = std::wstring::find_first_of(NULL, arg2, arg3); + result = std::wstring::find_first_of(p, arg2, arg3); } void test__std__wstring__find_first_of__arg1__notuninit() { @@ -30449,8 +30900,9 @@ void test__std__basic_string__find_first_of__leakignore() { } void test__std__basic_string__find_first_of__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = std::basic_string::find_first_of(NULL, arg2, arg3); + result = std::basic_string::find_first_of(p, arg2, arg3); } void test__std__basic_string__find_first_of__arg1__notuninit() { @@ -30490,8 +30942,9 @@ void test__std__string__find_last_of__leakignore() { } void test__std__string__find_last_of__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = std::string::find_last_of(NULL, arg2, arg3); + result = std::string::find_last_of(p, arg2, arg3); } void test__std__string__find_last_of__arg1__notuninit() { @@ -30531,8 +30984,9 @@ void test__std__wstring__find_last_of__leakignore() { } void test__std__wstring__find_last_of__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = std::wstring::find_last_of(NULL, arg2, arg3); + result = std::wstring::find_last_of(p, arg2, arg3); } void test__std__wstring__find_last_of__arg1__notuninit() { @@ -30572,8 +31026,9 @@ void test__std__basic_string__find_last_of__leakignore() { } void test__std__basic_string__find_last_of__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = std::basic_string::find_last_of(NULL, arg2, arg3); + result = std::basic_string::find_last_of(p, arg2, arg3); } void test__std__basic_string__find_last_of__arg1__notuninit() { @@ -30766,8 +31221,9 @@ void test__std__istream__read__leakignore() { } void test__std__istream__read__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::istream::read(NULL, arg2); + std::istream::read(p, arg2); } void test__std__istream__read__arg2__notuninit() { @@ -30790,8 +31246,9 @@ void test__std__ifstream__read__leakignore() { } void test__std__ifstream__read__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::ifstream::read(NULL, arg2); + std::ifstream::read(p, arg2); } void test__std__ifstream__read__arg2__notuninit() { @@ -30814,8 +31271,9 @@ void test__std__istream__readsome__leakignore() { } void test__std__istream__readsome__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::istream::readsome(NULL, arg2); + std::istream::readsome(p, arg2); } void test__std__istream__readsome__arg2__notuninit() { @@ -30838,8 +31296,9 @@ void test__std__ifstream__readsome__leakignore() { } void test__std__ifstream__readsome__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::ifstream::readsome(NULL, arg2); + std::ifstream::readsome(p, arg2); } void test__std__ifstream__readsome__arg2__notuninit() { @@ -30862,8 +31321,9 @@ void test__std__istream__getline__leakignore() { } void test__std__istream__getline__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::istream::getline(NULL, arg2, arg3); + std::istream::getline(p, arg2, arg3); } void test__std__istream__getline__arg2__notuninit() { @@ -30892,8 +31352,9 @@ void test__std__ifstream__getline__leakignore() { } void test__std__ifstream__getline__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::ifstream::getline(NULL, arg2, arg3); + std::ifstream::getline(p, arg2, arg3); } void test__std__ifstream__getline__arg2__notuninit() { @@ -30922,8 +31383,9 @@ void test__std__istream__get__leakignore() { } void test__std__istream__get__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::istream::get(NULL, arg2, arg3); + std::istream::get(p, arg2, arg3); } void test__std__istream__get__arg2__notuninit() { @@ -30952,8 +31414,9 @@ void test__std__ifstream__get__leakignore() { } void test__std__ifstream__get__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - std::ifstream::get(NULL, arg2, arg3); + std::ifstream::get(p, arg2, arg3); } void test__std__ifstream__get__arg2__notuninit() { @@ -30988,8 +31451,9 @@ void test__itoa__arg1__notuninit() { } void test__itoa__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - itoa(arg1, NULL, arg3); + itoa(arg1, p, arg3); } void test__itoa__arg3__notuninit() { diff --git a/test/cfg/generated-cfg-tests-windows.cpp b/test/cfg/generated-cfg-tests-windows.cpp index b9ec13cbc..b57f57078 100644 --- a/test/cfg/generated-cfg-tests-windows.cpp +++ b/test/cfg/generated-cfg-tests-windows.cpp @@ -27,8 +27,9 @@ void test__RtlCompareMemory__leakignore() { } void test__RtlCompareMemory__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = RtlCompareMemory(NULL, arg2, arg3); + result = RtlCompareMemory(p, arg2, arg3); } void test__RtlCompareMemory__arg1__notuninit() { @@ -38,8 +39,9 @@ void test__RtlCompareMemory__arg1__notuninit() { } void test__RtlCompareMemory__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = RtlCompareMemory(arg1, NULL, arg3); + result = RtlCompareMemory(arg1, p, arg3); } void test__RtlCompareMemory__arg2__notuninit() { @@ -67,13 +69,15 @@ void test__RtlCopyBytes__leakignore() { } void test__RtlCopyBytes__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - RtlCopyBytes(NULL, arg2, arg3); + RtlCopyBytes(p, arg2, arg3); } void test__RtlCopyBytes__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - RtlCopyBytes(arg1, NULL, arg3); + RtlCopyBytes(arg1, p, arg3); } void test__RtlCopyBytes__arg2__notuninit() { @@ -101,8 +105,9 @@ void test__RtlFillBytes__leakignore() { } void test__RtlFillBytes__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - RtlFillBytes(NULL, arg2, arg3); + RtlFillBytes(p, arg2, arg3); } void test__RtlFillBytes__arg2__notbool() { @@ -130,8 +135,9 @@ void test__RtlSecureZeroMemory__leakignore() { } void test__RtlSecureZeroMemory__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - RtlSecureZeroMemory(NULL, arg2); + RtlSecureZeroMemory(p, arg2); } void test__RtlSecureZeroMemory__arg2__notbool() { @@ -153,8 +159,9 @@ void test__RtlZeroBytes__leakignore() { } void test__RtlZeroBytes__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - RtlZeroBytes(NULL, arg2); + RtlZeroBytes(p, arg2); } void test__RtlZeroBytes__arg2__notbool() { @@ -228,8 +235,9 @@ void test__printf_s__leakignore() { } void test__printf_s__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - printf_s(NULL); + printf_s(p); } void test__printf_s__arg1__notuninit() { @@ -252,8 +260,9 @@ void test__wprintf_s__leakignore() { } void test__wprintf_s__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - wprintf_s(NULL); + wprintf_s(p); } void test__wprintf_s__arg1__notuninit() { @@ -276,8 +285,9 @@ void test__fprintf_s__leakignore() { } void test__fprintf_s__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - fprintf_s(arg1, NULL); + fprintf_s(arg1, p); } void test__fprintf_s__arg2__notuninit() { @@ -300,8 +310,9 @@ void test__fwprintf_s__leakignore() { } void test__fwprintf_s__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - fwprintf_s(arg1, NULL); + fwprintf_s(arg1, p); } void test__fwprintf_s__arg2__notuninit() { @@ -324,8 +335,9 @@ void test___snprintf_s__leakignore() { } void test___snprintf_s__arg4__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _snprintf_s(arg1, arg2, arg3, NULL); + _snprintf_s(arg1, arg2, arg3, p); } void test___snprintf_s__arg4__notuninit() { @@ -348,8 +360,9 @@ void test___snwprintf_s__leakignore() { } void test___snwprintf_s__arg4__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _snwprintf_s(arg1, arg2, arg3, NULL); + _snwprintf_s(arg1, arg2, arg3, p); } void test___snwprintf_s__arg4__notuninit() { @@ -372,8 +385,9 @@ void test__DbgPrint__leakignore() { } void test__DbgPrint__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - DbgPrint(NULL); + DbgPrint(p); } void test__DbgPrint__arg1__notuninit() { @@ -396,8 +410,9 @@ void test__DbgPrintEx__leakignore() { } void test__DbgPrintEx__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - DbgPrintEx(arg1, arg2, NULL); + DbgPrintEx(arg1, arg2, p); } void test__DbgPrintEx__arg3__notuninit() { @@ -420,8 +435,9 @@ void test__vDbgPrintEx__leakignore() { } void test__vDbgPrintEx__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - vDbgPrintEx(arg1, arg2, NULL); + vDbgPrintEx(arg1, arg2, p); } void test__vDbgPrintEx__arg3__notuninit() { @@ -444,8 +460,9 @@ void test__vDbgPrintExWithPrefix__leakignore() { } void test__vDbgPrintExWithPrefix__arg4__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - vDbgPrintExWithPrefix(arg1, arg2, arg3, NULL); + vDbgPrintExWithPrefix(arg1, arg2, arg3, p); } void test__vDbgPrintExWithPrefix__arg4__notuninit() { @@ -462,8 +479,9 @@ void test__scanf_s__noreturn() { } void test__scanf_s__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - scanf_s(NULL); + scanf_s(p); } void test__scanf_s__arg1__notuninit() { @@ -480,8 +498,9 @@ void test__wscanf_s__noreturn() { } void test__wscanf_s__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - wscanf_s(NULL); + wscanf_s(p); } void test__wscanf_s__arg1__notuninit() { @@ -498,8 +517,9 @@ void test__sscanf_s__noreturn() { } void test__sscanf_s__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - sscanf_s(arg1, NULL); + sscanf_s(arg1, p); } void test__sscanf_s__arg2__notuninit() { @@ -516,8 +536,9 @@ void test__fscanf_s__noreturn() { } void test__fscanf_s__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - fscanf_s(arg1, NULL); + fscanf_s(arg1, p); } void test__fscanf_s__arg2__notuninit() { @@ -534,8 +555,9 @@ void test__fwscanf_s__noreturn() { } void test__fwscanf_s__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - fwscanf_s(arg1, NULL); + fwscanf_s(arg1, p); } void test__fwscanf_s__arg2__notuninit() { @@ -552,8 +574,9 @@ void test__swscanf_s__noreturn() { } void test__swscanf_s__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - swscanf_s(arg1, NULL); + swscanf_s(arg1, p); } void test__swscanf_s__arg2__notuninit() { @@ -583,8 +606,9 @@ void test__OpenFile__noreturn() { } void test__OpenFile__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - OpenFile(NULL, arg2, arg3); + OpenFile(p, arg2, arg3); } void test__OpenFile__arg1__notuninit() { @@ -664,8 +688,9 @@ void test__ReadFile__arg1__notuninit() { } void test__ReadFile__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - ReadFile(arg1, NULL, arg3, arg4, arg5); + ReadFile(arg1, p, arg3, arg4, arg5); } void test__ReadFile__arg3__notuninit() { @@ -786,8 +811,9 @@ void test___mbstok__arg1__notuninit() { } void test___mbstok__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _mbstok(arg1, NULL); + _mbstok(arg1, p); } void test___mbstok__arg2__notuninit() { @@ -821,8 +847,9 @@ void test___tcstok__arg1__notuninit() { } void test___tcstok__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _tcstok(arg1, NULL); + _tcstok(arg1, p); } void test___tcstok__arg2__notuninit() { @@ -856,8 +883,9 @@ void test___mbstok_l__arg1__notuninit() { } void test___mbstok_l__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _mbstok_l(arg1, NULL, arg3); + _mbstok_l(arg1, p, arg3); } void test___mbstok_l__arg2__notuninit() { @@ -897,8 +925,9 @@ void test___strtok_s_l__arg1__notuninit() { } void test___strtok_s_l__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _strtok_s_l(arg1, NULL, arg3, arg4); + _strtok_s_l(arg1, p, arg3, arg4); } void test___strtok_s_l__arg2__notuninit() { @@ -908,8 +937,9 @@ void test___strtok_s_l__arg2__notuninit() { } void test___strtok_s_l__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _strtok_s_l(arg1, arg2, NULL, arg4); + _strtok_s_l(arg1, arg2, p, arg4); } void test___strtok_s_l__arg4__notuninit() { @@ -943,8 +973,9 @@ void test___wcstok_s_l__arg1__notuninit() { } void test___wcstok_s_l__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _wcstok_s_l(arg1, NULL, arg3, arg4); + _wcstok_s_l(arg1, p, arg3, arg4); } void test___wcstok_s_l__arg2__notuninit() { @@ -954,8 +985,9 @@ void test___wcstok_s_l__arg2__notuninit() { } void test___wcstok_s_l__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _wcstok_s_l(arg1, arg2, NULL, arg4); + _wcstok_s_l(arg1, arg2, p, arg4); } void test___wcstok_s_l__arg4__notuninit() { @@ -989,8 +1021,9 @@ void test___mbstok_s_l__arg1__notuninit() { } void test___mbstok_s_l__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _mbstok_s_l(arg1, NULL, arg3, arg4); + _mbstok_s_l(arg1, p, arg3, arg4); } void test___mbstok_s_l__arg2__notuninit() { @@ -1000,8 +1033,9 @@ void test___mbstok_s_l__arg2__notuninit() { } void test___mbstok_s_l__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _mbstok_s_l(arg1, arg2, NULL, arg4); + _mbstok_s_l(arg1, arg2, p, arg4); } void test___mbstok_s_l__arg4__notuninit() { @@ -1035,8 +1069,9 @@ void test___tcstok_s_l__arg1__notuninit() { } void test___tcstok_s_l__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _tcstok_s_l(arg1, NULL, arg3, arg4); + _tcstok_s_l(arg1, p, arg3, arg4); } void test___tcstok_s_l__arg2__notuninit() { @@ -1046,8 +1081,9 @@ void test___tcstok_s_l__arg2__notuninit() { } void test___tcstok_s_l__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _tcstok_s_l(arg1, arg2, NULL, arg4); + _tcstok_s_l(arg1, arg2, p, arg4); } void test___tcstok_s_l__arg4__notuninit() { @@ -1081,8 +1117,9 @@ void test__strtok_s__arg1__notuninit() { } void test__strtok_s__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - strtok_s(arg1, NULL, arg3); + strtok_s(arg1, p, arg3); } void test__strtok_s__arg2__notuninit() { @@ -1092,8 +1129,9 @@ void test__strtok_s__arg2__notuninit() { } void test__strtok_s__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - strtok_s(arg1, arg2, NULL); + strtok_s(arg1, arg2, p); } void test__wcstok_s__noreturn() { @@ -1121,8 +1159,9 @@ void test__wcstok_s__arg1__notuninit() { } void test__wcstok_s__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - wcstok_s(arg1, NULL, arg3); + wcstok_s(arg1, p, arg3); } void test__wcstok_s__arg2__notuninit() { @@ -1132,8 +1171,9 @@ void test__wcstok_s__arg2__notuninit() { } void test__wcstok_s__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - wcstok_s(arg1, arg2, NULL); + wcstok_s(arg1, arg2, p); } void test___mbstok_s__noreturn() { @@ -1161,8 +1201,9 @@ void test___mbstok_s__arg1__notuninit() { } void test___mbstok_s__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _mbstok_s(arg1, NULL, arg3); + _mbstok_s(arg1, p, arg3); } void test___mbstok_s__arg2__notuninit() { @@ -1172,8 +1213,9 @@ void test___mbstok_s__arg2__notuninit() { } void test___mbstok_s__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _mbstok_s(arg1, arg2, NULL); + _mbstok_s(arg1, arg2, p); } void test___tcstok_s__noreturn() { @@ -1201,8 +1243,9 @@ void test___tcstok_s__arg1__notuninit() { } void test___tcstok_s__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _tcstok_s(arg1, NULL, arg3); + _tcstok_s(arg1, p, arg3); } void test___tcstok_s__arg2__notuninit() { @@ -1212,8 +1255,9 @@ void test___tcstok_s__arg2__notuninit() { } void test___tcstok_s__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _tcstok_s(arg1, arg2, NULL); + _tcstok_s(arg1, arg2, p); } void test___getcwd__noreturn() { @@ -1304,8 +1348,9 @@ void test__SHGetFolderPath__arg4__notuninit() { } void test__SHGetFolderPath__arg5__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - SHGetFolderPath(arg1, arg2, arg3, arg4, NULL); + SHGetFolderPath(arg1, arg2, arg3, arg4, p); } void test__SHGetFolderPathA__noreturn() { @@ -1346,8 +1391,9 @@ void test__SHGetFolderPathA__arg4__notuninit() { } void test__SHGetFolderPathA__arg5__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - SHGetFolderPathA(arg1, arg2, arg3, arg4, NULL); + SHGetFolderPathA(arg1, arg2, arg3, arg4, p); } void test__SHGetFolderPathW__noreturn() { @@ -1388,8 +1434,9 @@ void test__SHGetFolderPathW__arg4__notuninit() { } void test__SHGetFolderPathW__arg5__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - SHGetFolderPathW(arg1, arg2, arg3, arg4, NULL); + SHGetFolderPathW(arg1, arg2, arg3, arg4, p); } void test__RegQueryValueEx__noreturn() { @@ -1518,8 +1565,9 @@ void test___stricmp_l__leakignore() { } void test___stricmp_l__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _stricmp_l(NULL, arg2, arg3); + _stricmp_l(p, arg2, arg3); } void test___stricmp_l__arg1__notuninit() { @@ -1529,8 +1577,9 @@ void test___stricmp_l__arg1__notuninit() { } void test___stricmp_l__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _stricmp_l(arg1, NULL, arg3); + _stricmp_l(arg1, p, arg3); } void test___stricmp_l__arg2__notuninit() { @@ -1559,8 +1608,9 @@ void test___wcsicmp_l__leakignore() { } void test___wcsicmp_l__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _wcsicmp_l(NULL, arg2, arg3); + _wcsicmp_l(p, arg2, arg3); } void test___wcsicmp_l__arg1__notuninit() { @@ -1570,8 +1620,9 @@ void test___wcsicmp_l__arg1__notuninit() { } void test___wcsicmp_l__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _wcsicmp_l(arg1, NULL, arg3); + _wcsicmp_l(arg1, p, arg3); } void test___wcsicmp_l__arg2__notuninit() { @@ -1600,8 +1651,9 @@ void test___mbsicmp_l__leakignore() { } void test___mbsicmp_l__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _mbsicmp_l(NULL, arg2, arg3); + _mbsicmp_l(p, arg2, arg3); } void test___mbsicmp_l__arg1__notuninit() { @@ -1611,8 +1663,9 @@ void test___mbsicmp_l__arg1__notuninit() { } void test___mbsicmp_l__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _mbsicmp_l(arg1, NULL, arg3); + _mbsicmp_l(arg1, p, arg3); } void test___mbsicmp_l__arg2__notuninit() { @@ -1641,8 +1694,9 @@ void test__stricmp__leakignore() { } void test__stricmp__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - stricmp(NULL, arg2); + stricmp(p, arg2); } void test__stricmp__arg1__notuninit() { @@ -1652,8 +1706,9 @@ void test__stricmp__arg1__notuninit() { } void test__stricmp__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - stricmp(arg1, NULL); + stricmp(arg1, p); } void test__stricmp__arg2__notuninit() { @@ -1676,8 +1731,9 @@ void test___stricmp__leakignore() { } void test___stricmp__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _stricmp(NULL, arg2); + _stricmp(p, arg2); } void test___stricmp__arg1__notuninit() { @@ -1687,8 +1743,9 @@ void test___stricmp__arg1__notuninit() { } void test___stricmp__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _stricmp(arg1, NULL); + _stricmp(arg1, p); } void test___stricmp__arg2__notuninit() { @@ -1711,8 +1768,9 @@ void test__wcsicmp__leakignore() { } void test__wcsicmp__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - wcsicmp(NULL, arg2); + wcsicmp(p, arg2); } void test__wcsicmp__arg1__notuninit() { @@ -1722,8 +1780,9 @@ void test__wcsicmp__arg1__notuninit() { } void test__wcsicmp__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - wcsicmp(arg1, NULL); + wcsicmp(arg1, p); } void test__wcsicmp__arg2__notuninit() { @@ -1746,8 +1805,9 @@ void test___wcsicmp__leakignore() { } void test___wcsicmp__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _wcsicmp(NULL, arg2); + _wcsicmp(p, arg2); } void test___wcsicmp__arg1__notuninit() { @@ -1757,8 +1817,9 @@ void test___wcsicmp__arg1__notuninit() { } void test___wcsicmp__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _wcsicmp(arg1, NULL); + _wcsicmp(arg1, p); } void test___wcsicmp__arg2__notuninit() { @@ -1781,8 +1842,9 @@ void test___mbsicmp__leakignore() { } void test___mbsicmp__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _mbsicmp(NULL, arg2); + _mbsicmp(p, arg2); } void test___mbsicmp__arg1__notuninit() { @@ -1792,8 +1854,9 @@ void test___mbsicmp__arg1__notuninit() { } void test___mbsicmp__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _mbsicmp(arg1, NULL); + _mbsicmp(arg1, p); } void test___mbsicmp__arg2__notuninit() { @@ -1816,8 +1879,9 @@ void test___tcsicmp__leakignore() { } void test___tcsicmp__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _tcsicmp(NULL, arg2); + _tcsicmp(p, arg2); } void test___tcsicmp__arg1__notuninit() { @@ -1827,8 +1891,9 @@ void test___tcsicmp__arg1__notuninit() { } void test___tcsicmp__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _tcsicmp(arg1, NULL); + _tcsicmp(arg1, p); } void test___tcsicmp__arg2__notuninit() { @@ -2007,8 +2072,9 @@ void test__wsprintf__arg1__notuninit() { } void test__wsprintf__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - wsprintf(arg1, NULL); + wsprintf(arg1, p); } void test__wsprintf__arg2__notuninit() { @@ -2037,8 +2103,9 @@ void test__wsprintfA__arg1__notuninit() { } void test__wsprintfA__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - wsprintfA(arg1, NULL); + wsprintfA(arg1, p); } void test__wsprintfA__arg2__notuninit() { @@ -2067,8 +2134,9 @@ void test__wsprintfW__arg1__notuninit() { } void test__wsprintfW__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - wsprintfW(arg1, NULL); + wsprintfW(arg1, p); } void test__wsprintfW__arg2__notuninit() { @@ -2123,8 +2191,9 @@ void test___sprintf_s_l__arg2__notuninit() { } void test___sprintf_s_l__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _sprintf_s_l(arg1, arg2, NULL, arg4); + _sprintf_s_l(arg1, arg2, p, arg4); } void test___sprintf_s_l__arg3__notuninit() { @@ -2159,8 +2228,9 @@ void test___swprintf_s_l__arg2__notuninit() { } void test___swprintf_s_l__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _swprintf_s_l(arg1, arg2, NULL, arg4); + _swprintf_s_l(arg1, arg2, p, arg4); } void test___swprintf_s_l__arg3__notuninit() { @@ -2302,8 +2372,9 @@ void test___vsnprintf__arg2__notuninit() { } void test___vsnprintf__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _vsnprintf(arg1, arg2, NULL, arg4); + _vsnprintf(arg1, arg2, p, arg4); } void test___vsnprintf__arg3__notuninit() { @@ -2338,8 +2409,9 @@ void test___vsnwprintf__arg2__notuninit() { } void test___vsnwprintf__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _vsnwprintf(arg1, arg2, NULL, arg4); + _vsnwprintf(arg1, arg2, p, arg4); } void test___vsnwprintf__arg3__notuninit() { @@ -2374,8 +2446,9 @@ void test___vsnprintf_l__arg2__notuninit() { } void test___vsnprintf_l__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _vsnprintf_l(arg1, arg2, NULL, arg4, arg5); + _vsnprintf_l(arg1, arg2, p, arg4, arg5); } void test___vsnprintf_l__arg3__notuninit() { @@ -2416,8 +2489,9 @@ void test___vsnwprintf_l__arg2__notuninit() { } void test___vsnwprintf_l__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _vsnwprintf_l(arg1, arg2, NULL, arg4, arg5); + _vsnwprintf_l(arg1, arg2, p, arg4, arg5); } void test___vsnwprintf_l__arg3__notuninit() { @@ -2458,8 +2532,9 @@ void test___vswprintf_l__arg2__notuninit() { } void test___vswprintf_l__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _vswprintf_l(arg1, arg2, NULL, arg4, arg5); + _vswprintf_l(arg1, arg2, p, arg4, arg5); } void test___vswprintf_l__arg3__notuninit() { @@ -2506,8 +2581,9 @@ void test__vsnprintf_s__arg3__notuninit() { } void test__vsnprintf_s__arg4__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - vsnprintf_s(arg1, arg2, arg3, NULL, arg5); + vsnprintf_s(arg1, arg2, arg3, p, arg5); } void test__vsnprintf_s__arg4__notuninit() { @@ -2548,8 +2624,9 @@ void test___vsnprintf_s__arg3__notuninit() { } void test___vsnprintf_s__arg4__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _vsnprintf_s(arg1, arg2, arg3, NULL, arg5); + _vsnprintf_s(arg1, arg2, arg3, p, arg5); } void test___vsnprintf_s__arg4__notuninit() { @@ -2590,8 +2667,9 @@ void test___vsnwprintf_s__arg3__notuninit() { } void test___vsnwprintf_s__arg4__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _vsnwprintf_s(arg1, arg2, arg3, NULL, arg5); + _vsnwprintf_s(arg1, arg2, arg3, p, arg5); } void test___vsnwprintf_s__arg4__notuninit() { @@ -2632,8 +2710,9 @@ void test___vsnprintf_s_l__arg3__notuninit() { } void test___vsnprintf_s_l__arg4__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _vsnprintf_s_l(arg1, arg2, arg3, NULL, arg5, arg6); + _vsnprintf_s_l(arg1, arg2, arg3, p, arg5, arg6); } void test___vsnprintf_s_l__arg4__notuninit() { @@ -2680,8 +2759,9 @@ void test___vsnwprintf_s_l__arg3__notuninit() { } void test___vsnwprintf_s_l__arg4__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _vsnwprintf_s_l(arg1, arg2, arg3, NULL, arg5, arg6); + _vsnwprintf_s_l(arg1, arg2, arg3, p, arg5, arg6); } void test___vsnwprintf_s_l__arg4__notuninit() { @@ -2710,13 +2790,15 @@ void test___vsprintf_l__leakignore() { } void test___vsprintf_l__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _vsprintf_l(NULL, arg2, arg3, arg4); + _vsprintf_l(p, arg2, arg3, arg4); } void test___vsprintf_l__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _vsprintf_l(arg1, NULL, arg3, arg4); + _vsprintf_l(arg1, p, arg3, arg4); } void test___vsprintf_l__arg3__notuninit() { @@ -2739,13 +2821,15 @@ void test____vswprintf_l__leakignore() { } void test____vswprintf_l__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - __vswprintf_l(NULL, arg2, arg3, arg4); + __vswprintf_l(p, arg2, arg3, arg4); } void test____vswprintf_l__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - __vswprintf_l(arg1, NULL, arg3, arg4); + __vswprintf_l(arg1, p, arg3, arg4); } void test____vswprintf_l__arg3__notuninit() { @@ -2762,8 +2846,9 @@ void test___strdup__noreturn() { } void test___strdup__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _strdup(NULL); + _strdup(p); } void test___strdup__arg1__notuninit() { @@ -2780,8 +2865,9 @@ void test___wcsdup__noreturn() { } void test___wcsdup__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _wcsdup(NULL); + _wcsdup(p); } void test___wcsdup__arg1__notuninit() { @@ -2798,8 +2884,9 @@ void test___mbsdup__noreturn() { } void test___mbsdup__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _mbsdup(NULL); + _mbsdup(p); } void test___mbsdup__arg1__notuninit() { @@ -2816,8 +2903,9 @@ void test___tcsdup__noreturn() { } void test___tcsdup__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _tcsdup(NULL); + _tcsdup(p); } void test___tcsdup__arg1__notuninit() { @@ -2834,8 +2922,9 @@ void test___strdup_dbg__noreturn() { } void test___strdup_dbg__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _strdup_dbg(NULL, arg2, arg3, arg4); + _strdup_dbg(p, arg2, arg3, arg4); } void test___strdup_dbg__arg1__notuninit() { @@ -2870,8 +2959,9 @@ void test___wcsdup_dbg__noreturn() { } void test___wcsdup_dbg__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _wcsdup_dbg(NULL, arg2, arg3, arg4); + _wcsdup_dbg(p, arg2, arg3, arg4); } void test___wcsdup_dbg__arg1__notuninit() { @@ -2906,8 +2996,9 @@ void test___tcsdup_dbg__noreturn() { } void test___tcsdup_dbg__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _tcsdup_dbg(NULL, arg2, arg3, arg4); + _tcsdup_dbg(p, arg2, arg3, arg4); } void test___tcsdup_dbg__arg1__notuninit() { @@ -2958,8 +3049,9 @@ void test___mbscmp__leakignore() { } void test___mbscmp__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = _mbscmp(NULL, arg2); + result = _mbscmp(p, arg2); } void test___mbscmp__arg1__notuninit() { @@ -2969,8 +3061,9 @@ void test___mbscmp__arg1__notuninit() { } void test___mbscmp__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = _mbscmp(arg1, NULL); + result = _mbscmp(arg1, p); } void test___mbscmp__arg2__notuninit() { @@ -3003,8 +3096,9 @@ void test___tcscmp__leakignore() { } void test___tcscmp__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = _tcscmp(NULL, arg2); + result = _tcscmp(p, arg2); } void test___tcscmp__arg1__notuninit() { @@ -3014,8 +3108,9 @@ void test___tcscmp__arg1__notuninit() { } void test___tcscmp__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = _tcscmp(arg1, NULL); + result = _tcscmp(arg1, p); } void test___tcscmp__arg2__notuninit() { @@ -3044,8 +3139,9 @@ void test___snprintf__arg2__notuninit() { } void test___snprintf__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _snprintf(arg1, arg2, NULL); + _snprintf(arg1, arg2, p); } void test___snprintf__arg3__notuninit() { @@ -3074,8 +3170,9 @@ void test___snwprintf__arg2__notuninit() { } void test___snwprintf__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _snwprintf(arg1, arg2, NULL); + _snwprintf(arg1, arg2, p); } void test___snwprintf__arg3__notuninit() { @@ -3104,8 +3201,9 @@ void test___sntprintf__arg2__notuninit() { } void test___sntprintf__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _sntprintf(arg1, arg2, NULL); + _sntprintf(arg1, arg2, p); } void test___sntprintf__arg3__notuninit() { @@ -3128,8 +3226,9 @@ void test__strcpy_s__leakignore() { } void test__strcpy_s__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - strcpy_s(NULL, arg2, arg3); + strcpy_s(p, arg2, arg3); } void test__strcpy_s__arg2__notuninit() { @@ -3139,8 +3238,9 @@ void test__strcpy_s__arg2__notuninit() { } void test__strcpy_s__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - strcpy_s(arg1, arg2, NULL); + strcpy_s(arg1, arg2, p); } void test__strcpy_s__arg3__notuninit() { @@ -3163,8 +3263,9 @@ void test__wcscpy_s__leakignore() { } void test__wcscpy_s__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - wcscpy_s(NULL, arg2, arg3); + wcscpy_s(p, arg2, arg3); } void test__wcscpy_s__arg2__notuninit() { @@ -3174,8 +3275,9 @@ void test__wcscpy_s__arg2__notuninit() { } void test__wcscpy_s__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - wcscpy_s(arg1, arg2, NULL); + wcscpy_s(arg1, arg2, p); } void test__wcscpy_s__arg3__notuninit() { @@ -3198,8 +3300,9 @@ void test___mbscpy_s__leakignore() { } void test___mbscpy_s__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _mbscpy_s(NULL, arg2, arg3); + _mbscpy_s(p, arg2, arg3); } void test___mbscpy_s__arg2__notuninit() { @@ -3209,8 +3312,9 @@ void test___mbscpy_s__arg2__notuninit() { } void test___mbscpy_s__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _mbscpy_s(arg1, arg2, NULL); + _mbscpy_s(arg1, arg2, p); } void test___mbscpy_s__arg3__notuninit() { @@ -3233,8 +3337,9 @@ void test___tcscpy_s__leakignore() { } void test___tcscpy_s__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _tcscpy_s(NULL, arg2, arg3); + _tcscpy_s(p, arg2, arg3); } void test___tcscpy_s__arg2__notuninit() { @@ -3244,8 +3349,9 @@ void test___tcscpy_s__arg2__notuninit() { } void test___tcscpy_s__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _tcscpy_s(arg1, arg2, NULL); + _tcscpy_s(arg1, arg2, p); } void test___tcscpy_s__arg3__notuninit() { @@ -3287,8 +3393,9 @@ void test___stat__leakignore() { } void test___stat__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _stat(NULL, arg2); + _stat(p, arg2); } void test___stat__arg1__notuninit() { @@ -3298,8 +3405,9 @@ void test___stat__arg1__notuninit() { } void test___stat__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _stat(arg1, NULL); + _stat(arg1, p); } void test___tstat__noreturn() { @@ -3316,8 +3424,9 @@ void test___tstat__leakignore() { } void test___tstat__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _tstat(NULL, arg2); + _tstat(p, arg2); } void test___tstat__arg1__notuninit() { @@ -3327,8 +3436,9 @@ void test___tstat__arg1__notuninit() { } void test___tstat__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _tstat(arg1, NULL); + _tstat(arg1, p); } void test___stat32__noreturn() { @@ -3345,8 +3455,9 @@ void test___stat32__leakignore() { } void test___stat32__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _stat32(NULL, arg2); + _stat32(p, arg2); } void test___stat32__arg1__notuninit() { @@ -3356,8 +3467,9 @@ void test___stat32__arg1__notuninit() { } void test___stat32__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _stat32(arg1, NULL); + _stat32(arg1, p); } void test___stat64__noreturn() { @@ -3374,8 +3486,9 @@ void test___stat64__leakignore() { } void test___stat64__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _stat64(NULL, arg2); + _stat64(p, arg2); } void test___stat64__arg1__notuninit() { @@ -3385,8 +3498,9 @@ void test___stat64__arg1__notuninit() { } void test___stat64__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _stat64(arg1, NULL); + _stat64(arg1, p); } void test___tstat64__noreturn() { @@ -3403,8 +3517,9 @@ void test___tstat64__leakignore() { } void test___tstat64__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _tstat64(NULL, arg2); + _tstat64(p, arg2); } void test___tstat64__arg1__notuninit() { @@ -3414,8 +3529,9 @@ void test___tstat64__arg1__notuninit() { } void test___tstat64__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _tstat64(arg1, NULL); + _tstat64(arg1, p); } void test___stati64__noreturn() { @@ -3432,8 +3548,9 @@ void test___stati64__leakignore() { } void test___stati64__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _stati64(NULL, arg2); + _stati64(p, arg2); } void test___stati64__arg1__notuninit() { @@ -3443,8 +3560,9 @@ void test___stati64__arg1__notuninit() { } void test___stati64__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _stati64(arg1, NULL); + _stati64(arg1, p); } void test___tstati64__noreturn() { @@ -3461,8 +3579,9 @@ void test___tstati64__leakignore() { } void test___tstati64__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _tstati64(NULL, arg2); + _tstati64(p, arg2); } void test___tstati64__arg1__notuninit() { @@ -3472,8 +3591,9 @@ void test___tstati64__arg1__notuninit() { } void test___tstati64__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _tstati64(arg1, NULL); + _tstati64(arg1, p); } void test___stat32i64__noreturn() { @@ -3490,8 +3610,9 @@ void test___stat32i64__leakignore() { } void test___stat32i64__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _stat32i64(NULL, arg2); + _stat32i64(p, arg2); } void test___stat32i64__arg1__notuninit() { @@ -3501,8 +3622,9 @@ void test___stat32i64__arg1__notuninit() { } void test___stat32i64__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _stat32i64(arg1, NULL); + _stat32i64(arg1, p); } void test___tstat32i64__noreturn() { @@ -3519,8 +3641,9 @@ void test___tstat32i64__leakignore() { } void test___tstat32i64__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _tstat32i64(NULL, arg2); + _tstat32i64(p, arg2); } void test___tstat32i64__arg1__notuninit() { @@ -3530,8 +3653,9 @@ void test___tstat32i64__arg1__notuninit() { } void test___tstat32i64__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _tstat32i64(arg1, NULL); + _tstat32i64(arg1, p); } void test___stat64i32__noreturn() { @@ -3548,8 +3672,9 @@ void test___stat64i32__leakignore() { } void test___stat64i32__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _stat64i32(NULL, arg2); + _stat64i32(p, arg2); } void test___stat64i32__arg1__notuninit() { @@ -3559,8 +3684,9 @@ void test___stat64i32__arg1__notuninit() { } void test___stat64i32__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _stat64i32(arg1, NULL); + _stat64i32(arg1, p); } void test___tstat64i32__noreturn() { @@ -3577,8 +3703,9 @@ void test___tstat64i32__leakignore() { } void test___tstat64i32__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _tstat64i32(NULL, arg2); + _tstat64i32(p, arg2); } void test___tstat64i32__arg1__notuninit() { @@ -3588,8 +3715,9 @@ void test___tstat64i32__arg1__notuninit() { } void test___tstat64i32__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _tstat64i32(arg1, NULL); + _tstat64i32(arg1, p); } void test___wstat__noreturn() { @@ -3606,8 +3734,9 @@ void test___wstat__leakignore() { } void test___wstat__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _wstat(NULL, arg2); + _wstat(p, arg2); } void test___wstat__arg1__notuninit() { @@ -3617,8 +3746,9 @@ void test___wstat__arg1__notuninit() { } void test___wstat__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _wstat(arg1, NULL); + _wstat(arg1, p); } void test___wstat32__noreturn() { @@ -3635,8 +3765,9 @@ void test___wstat32__leakignore() { } void test___wstat32__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _wstat32(NULL, arg2); + _wstat32(p, arg2); } void test___wstat32__arg1__notuninit() { @@ -3646,8 +3777,9 @@ void test___wstat32__arg1__notuninit() { } void test___wstat32__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _wstat32(arg1, NULL); + _wstat32(arg1, p); } void test___wstat64__noreturn() { @@ -3664,8 +3796,9 @@ void test___wstat64__leakignore() { } void test___wstat64__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _wstat64(NULL, arg2); + _wstat64(p, arg2); } void test___wstat64__arg1__notuninit() { @@ -3675,8 +3808,9 @@ void test___wstat64__arg1__notuninit() { } void test___wstat64__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _wstat64(arg1, NULL); + _wstat64(arg1, p); } void test___wstati64__noreturn() { @@ -3693,8 +3827,9 @@ void test___wstati64__leakignore() { } void test___wstati64__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _wstati64(NULL, arg2); + _wstati64(p, arg2); } void test___wstati64__arg1__notuninit() { @@ -3704,8 +3839,9 @@ void test___wstati64__arg1__notuninit() { } void test___wstati64__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _wstati64(arg1, NULL); + _wstati64(arg1, p); } void test___wstat32i64__noreturn() { @@ -3722,8 +3858,9 @@ void test___wstat32i64__leakignore() { } void test___wstat32i64__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _wstat32i64(NULL, arg2); + _wstat32i64(p, arg2); } void test___wstat32i64__arg1__notuninit() { @@ -3733,8 +3870,9 @@ void test___wstat32i64__arg1__notuninit() { } void test___wstat32i64__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _wstat32i64(arg1, NULL); + _wstat32i64(arg1, p); } void test___wstat64i32__noreturn() { @@ -3751,8 +3889,9 @@ void test___wstat64i32__leakignore() { } void test___wstat64i32__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _wstat64i32(NULL, arg2); + _wstat64i32(p, arg2); } void test___wstat64i32__arg1__notuninit() { @@ -3762,8 +3901,9 @@ void test___wstat64i32__arg1__notuninit() { } void test___wstat64i32__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _wstat64i32(arg1, NULL); + _wstat64i32(arg1, p); } void test___fstat__noreturn() { @@ -3786,8 +3926,9 @@ void test___fstat__arg1__notuninit() { } void test___fstat__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _fstat(arg1, NULL); + _fstat(arg1, p); } void test___fstat32__noreturn() { @@ -3810,8 +3951,9 @@ void test___fstat32__arg1__notuninit() { } void test___fstat32__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _fstat32(arg1, NULL); + _fstat32(arg1, p); } void test___fstat64__noreturn() { @@ -3834,8 +3976,9 @@ void test___fstat64__arg1__notuninit() { } void test___fstat64__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _fstat64(arg1, NULL); + _fstat64(arg1, p); } void test___fstati64__noreturn() { @@ -3858,8 +4001,9 @@ void test___fstati64__arg1__notuninit() { } void test___fstati64__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _fstati64(arg1, NULL); + _fstati64(arg1, p); } void test___fstat32i64__noreturn() { @@ -3882,8 +4026,9 @@ void test___fstat32i64__arg1__notuninit() { } void test___fstat32i64__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _fstat32i64(arg1, NULL); + _fstat32i64(arg1, p); } void test___fstat64i32__noreturn() { @@ -3906,8 +4051,9 @@ void test___fstat64i32__arg1__notuninit() { } void test___fstat64i32__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _fstat64i32(arg1, NULL); + _fstat64i32(arg1, p); } void test___fseeki64__noreturn() { @@ -3924,8 +4070,9 @@ void test___fseeki64__leakignore() { } void test___fseeki64__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _fseeki64(NULL, arg2, arg3); + _fseeki64(p, arg2, arg3); } void test___fseeki64__arg1__notuninit() { @@ -3965,8 +4112,9 @@ void test___ftelli64__leakignore() { } void test___ftelli64__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = _ftelli64(NULL); + result = _ftelli64(p); } void test___ftelli64__arg1__notuninit() { @@ -3994,8 +4142,9 @@ void test___ftell_nolock__leakignore() { } void test___ftell_nolock__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = _ftell_nolock(NULL); + result = _ftell_nolock(p); } void test___ftell_nolock__arg1__notuninit() { @@ -4023,8 +4172,9 @@ void test___ftelli64_nolock__leakignore() { } void test___ftelli64_nolock__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = _ftelli64_nolock(NULL); + result = _ftelli64_nolock(p); } void test___ftelli64_nolock__arg1__notuninit() { @@ -4046,8 +4196,9 @@ void test___wfopen__useretval() { } void test___wfopen__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = _wfopen(NULL, arg2); + result = _wfopen(p, arg2); } void test___wfopen__arg1__notuninit() { @@ -4057,8 +4208,9 @@ void test___wfopen__arg1__notuninit() { } void test___wfopen__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = _wfopen(arg1, NULL); + result = _wfopen(arg1, p); } void test___wfopen__arg2__notuninit() { @@ -4080,8 +4232,9 @@ void test___tfopen__useretval() { } void test___tfopen__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = _tfopen(NULL, arg2); + result = _tfopen(p, arg2); } void test___tfopen__arg1__notuninit() { @@ -4091,8 +4244,9 @@ void test___tfopen__arg1__notuninit() { } void test___tfopen__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = _tfopen(arg1, NULL); + result = _tfopen(arg1, p); } void test___tfopen__arg2__notuninit() { @@ -4120,8 +4274,9 @@ void test__strnlen_s__leakignore() { } void test__strnlen_s__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = strnlen_s(NULL, arg2); + result = strnlen_s(p, arg2); } void test__strnlen_s__arg1__notuninit() { @@ -4155,8 +4310,9 @@ void test__wcsnlen_s__leakignore() { } void test__wcsnlen_s__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = wcsnlen_s(NULL, arg2); + result = wcsnlen_s(p, arg2); } void test__wcsnlen_s__arg1__notuninit() { @@ -4190,8 +4346,9 @@ void test___mbsnlen__leakignore() { } void test___mbsnlen__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = _mbsnlen(NULL, arg2); + result = _mbsnlen(p, arg2); } void test___mbsnlen__arg1__notuninit() { @@ -4225,8 +4382,9 @@ void test___mbstrnlen__leakignore() { } void test___mbstrnlen__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = _mbstrnlen(NULL, arg2); + result = _mbstrnlen(p, arg2); } void test___mbstrnlen__arg1__notuninit() { @@ -4260,8 +4418,9 @@ void test___mbsnlen_l__leakignore() { } void test___mbsnlen_l__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = _mbsnlen_l(NULL, arg2, arg3); + result = _mbsnlen_l(p, arg2, arg3); } void test___mbsnlen_l__arg1__notuninit() { @@ -4301,8 +4460,9 @@ void test___mbstrnlen_l__leakignore() { } void test___mbstrnlen_l__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = _mbstrnlen_l(NULL, arg2, arg3); + result = _mbstrnlen_l(p, arg2, arg3); } void test___mbstrnlen_l__arg1__notuninit() { @@ -4477,13 +4637,15 @@ void test___wfopen_s__noreturn() { } void test___wfopen_s__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _wfopen_s(NULL, arg2, arg3); + _wfopen_s(p, arg2, arg3); } void test___wfopen_s__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _wfopen_s(arg1, NULL, arg3); + _wfopen_s(arg1, p, arg3); } void test___wfopen_s__arg2__notuninit() { @@ -4493,8 +4655,9 @@ void test___wfopen_s__arg2__notuninit() { } void test___wfopen_s__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _wfopen_s(arg1, arg2, NULL); + _wfopen_s(arg1, arg2, p); } void test___wfopen_s__arg3__notuninit() { @@ -4511,13 +4674,15 @@ void test___tfopen_s__noreturn() { } void test___tfopen_s__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _tfopen_s(NULL, arg2, arg3); + _tfopen_s(p, arg2, arg3); } void test___tfopen_s__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _tfopen_s(arg1, NULL, arg3); + _tfopen_s(arg1, p, arg3); } void test___tfopen_s__arg2__notuninit() { @@ -4527,8 +4692,9 @@ void test___tfopen_s__arg2__notuninit() { } void test___tfopen_s__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _tfopen_s(arg1, arg2, NULL); + _tfopen_s(arg1, arg2, p); } void test___tfopen_s__arg3__notuninit() { @@ -4657,8 +4823,9 @@ void test___access__leakignore() { } void test___access__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _access(NULL, arg2); + _access(p, arg2); } void test___access__arg1__notuninit() { @@ -4687,8 +4854,9 @@ void test___waccess__leakignore() { } void test___waccess__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _waccess(NULL, arg2); + _waccess(p, arg2); } void test___waccess__arg1__notuninit() { @@ -4717,8 +4885,9 @@ void test___taccess__leakignore() { } void test___taccess__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _taccess(NULL, arg2); + _taccess(p, arg2); } void test___taccess__arg1__notuninit() { @@ -4747,8 +4916,9 @@ void test__PeekMessage__leakignore() { } void test__PeekMessage__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - PeekMessage(NULL, arg2, arg3, arg4, arg5); + PeekMessage(p, arg2, arg3, arg4, arg5); } void test__PeekMessage__arg2__notuninit() { @@ -4789,8 +4959,9 @@ void test__PeekMessageA__leakignore() { } void test__PeekMessageA__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - PeekMessageA(NULL, arg2, arg3, arg4, arg5); + PeekMessageA(p, arg2, arg3, arg4, arg5); } void test__PeekMessageA__arg2__notuninit() { @@ -4831,8 +5002,9 @@ void test__PeekMessageW__leakignore() { } void test__PeekMessageW__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - PeekMessageW(NULL, arg2, arg3, arg4, arg5); + PeekMessageW(p, arg2, arg3, arg4, arg5); } void test__PeekMessageW__arg2__notuninit() { @@ -4873,8 +5045,9 @@ void test__GetMessage__leakignore() { } void test__GetMessage__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - GetMessage(NULL, arg2, arg3, arg4); + GetMessage(p, arg2, arg3, arg4); } void test__GetMessage__arg2__notuninit() { @@ -4909,8 +5082,9 @@ void test__GetMessageA__leakignore() { } void test__GetMessageA__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - GetMessageA(NULL, arg2, arg3, arg4); + GetMessageA(p, arg2, arg3, arg4); } void test__GetMessageA__arg2__notuninit() { @@ -4945,8 +5119,9 @@ void test__GetMessageW__leakignore() { } void test__GetMessageW__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - GetMessageW(NULL, arg2, arg3, arg4); + GetMessageW(p, arg2, arg3, arg4); } void test__GetMessageW__arg2__notuninit() { @@ -4981,8 +5156,9 @@ void test__TranslateMessage__leakignore() { } void test__TranslateMessage__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - TranslateMessage(NULL); + TranslateMessage(p); } void test__TranslateMessage__arg1__notuninit() { @@ -5005,8 +5181,9 @@ void test__DispatchMessage__leakignore() { } void test__DispatchMessage__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - DispatchMessage(NULL); + DispatchMessage(p); } void test__DispatchMessage__arg1__notuninit() { @@ -5029,8 +5206,9 @@ void test__DispatchMessageA__leakignore() { } void test__DispatchMessageA__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - DispatchMessageA(NULL); + DispatchMessageA(p); } void test__DispatchMessageA__arg1__notuninit() { @@ -5053,8 +5231,9 @@ void test__DispatchMessageW__leakignore() { } void test__DispatchMessageW__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - DispatchMessageW(NULL); + DispatchMessageW(p); } void test__DispatchMessageW__arg1__notuninit() { @@ -5071,8 +5250,9 @@ void test__SendMessage__noreturn() { } void test__SendMessage__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - SendMessage(NULL, arg2, arg3, arg4); + SendMessage(p, arg2, arg3, arg4); } void test__SendMessage__arg1__notuninit() { @@ -5107,8 +5287,9 @@ void test__SendMessageA__noreturn() { } void test__SendMessageA__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - SendMessageA(NULL, arg2, arg3, arg4); + SendMessageA(p, arg2, arg3, arg4); } void test__SendMessageA__arg1__notuninit() { @@ -5143,8 +5324,9 @@ void test__SendMessageW__noreturn() { } void test__SendMessageW__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - SendMessageW(NULL, arg2, arg3, arg4); + SendMessageW(p, arg2, arg3, arg4); } void test__SendMessageW__arg1__notuninit() { @@ -5179,8 +5361,9 @@ void test__PostMessage__noreturn() { } void test__PostMessage__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - PostMessage(NULL, arg2, arg3, arg4); + PostMessage(p, arg2, arg3, arg4); } void test__PostMessage__arg1__notuninit() { @@ -5215,8 +5398,9 @@ void test__PostMessageA__noreturn() { } void test__PostMessageA__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - PostMessageA(NULL, arg2, arg3, arg4); + PostMessageA(p, arg2, arg3, arg4); } void test__PostMessageA__arg1__notuninit() { @@ -5251,8 +5435,9 @@ void test__PostMessageW__noreturn() { } void test__PostMessageW__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - PostMessageW(NULL, arg2, arg3, arg4); + PostMessageW(p, arg2, arg3, arg4); } void test__PostMessageW__arg1__notuninit() { @@ -5312,8 +5497,9 @@ void test__DefWindowProc__leakignore() { } void test__DefWindowProc__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - DefWindowProc(NULL, arg2, arg3, arg4); + DefWindowProc(p, arg2, arg3, arg4); } void test__DefWindowProc__arg1__notuninit() { @@ -5354,8 +5540,9 @@ void test__DefWindowProcA__leakignore() { } void test__DefWindowProcA__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - DefWindowProcA(NULL, arg2, arg3, arg4); + DefWindowProcA(p, arg2, arg3, arg4); } void test__DefWindowProcA__arg1__notuninit() { @@ -5396,8 +5583,9 @@ void test__DefWindowProcW__leakignore() { } void test__DefWindowProcW__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - DefWindowProcW(NULL, arg2, arg3, arg4); + DefWindowProcW(p, arg2, arg3, arg4); } void test__DefWindowProcW__arg1__notuninit() { @@ -5443,8 +5631,9 @@ void test__GetPrivateProfileInt__leakignore() { } void test__GetPrivateProfileInt__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = GetPrivateProfileInt(NULL, arg2, arg3, arg4); + result = GetPrivateProfileInt(p, arg2, arg3, arg4); } void test__GetPrivateProfileInt__arg1__notuninit() { @@ -5454,8 +5643,9 @@ void test__GetPrivateProfileInt__arg1__notuninit() { } void test__GetPrivateProfileInt__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = GetPrivateProfileInt(arg1, NULL, arg3, arg4); + result = GetPrivateProfileInt(arg1, p, arg3, arg4); } void test__GetPrivateProfileInt__arg2__notuninit() { @@ -5471,8 +5661,9 @@ void test__GetPrivateProfileInt__arg3__notuninit() { } void test__GetPrivateProfileInt__arg4__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = GetPrivateProfileInt(arg1, arg2, arg3, NULL); + result = GetPrivateProfileInt(arg1, arg2, arg3, p); } void test__GetPrivateProfileInt__arg4__notuninit() { @@ -5500,8 +5691,9 @@ void test__GetPrivateProfileIntA__leakignore() { } void test__GetPrivateProfileIntA__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = GetPrivateProfileIntA(NULL, arg2, arg3, arg4); + result = GetPrivateProfileIntA(p, arg2, arg3, arg4); } void test__GetPrivateProfileIntA__arg1__notuninit() { @@ -5511,8 +5703,9 @@ void test__GetPrivateProfileIntA__arg1__notuninit() { } void test__GetPrivateProfileIntA__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = GetPrivateProfileIntA(arg1, NULL, arg3, arg4); + result = GetPrivateProfileIntA(arg1, p, arg3, arg4); } void test__GetPrivateProfileIntA__arg2__notuninit() { @@ -5528,8 +5721,9 @@ void test__GetPrivateProfileIntA__arg3__notuninit() { } void test__GetPrivateProfileIntA__arg4__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = GetPrivateProfileIntA(arg1, arg2, arg3, NULL); + result = GetPrivateProfileIntA(arg1, arg2, arg3, p); } void test__GetPrivateProfileIntA__arg4__notuninit() { @@ -5557,8 +5751,9 @@ void test__GetPrivateProfileIntW__leakignore() { } void test__GetPrivateProfileIntW__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = GetPrivateProfileIntW(NULL, arg2, arg3, arg4); + result = GetPrivateProfileIntW(p, arg2, arg3, arg4); } void test__GetPrivateProfileIntW__arg1__notuninit() { @@ -5568,8 +5763,9 @@ void test__GetPrivateProfileIntW__arg1__notuninit() { } void test__GetPrivateProfileIntW__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = GetPrivateProfileIntW(arg1, NULL, arg3, arg4); + result = GetPrivateProfileIntW(arg1, p, arg3, arg4); } void test__GetPrivateProfileIntW__arg2__notuninit() { @@ -5585,8 +5781,9 @@ void test__GetPrivateProfileIntW__arg3__notuninit() { } void test__GetPrivateProfileIntW__arg4__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = GetPrivateProfileIntW(arg1, arg2, arg3, NULL); + result = GetPrivateProfileIntW(arg1, arg2, arg3, p); } void test__GetPrivateProfileIntW__arg4__notuninit() { @@ -5609,8 +5806,9 @@ void test__GetPrivateProfileSection__leakignore() { } void test__GetPrivateProfileSection__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - GetPrivateProfileSection(NULL, arg2, arg3, arg4); + GetPrivateProfileSection(p, arg2, arg3, arg4); } void test__GetPrivateProfileSection__arg1__notuninit() { @@ -5620,8 +5818,9 @@ void test__GetPrivateProfileSection__arg1__notuninit() { } void test__GetPrivateProfileSection__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - GetPrivateProfileSection(arg1, NULL, arg3, arg4); + GetPrivateProfileSection(arg1, p, arg3, arg4); } void test__GetPrivateProfileSection__arg3__notuninit() { @@ -5631,8 +5830,9 @@ void test__GetPrivateProfileSection__arg3__notuninit() { } void test__GetPrivateProfileSection__arg4__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - GetPrivateProfileSection(arg1, arg2, arg3, NULL); + GetPrivateProfileSection(arg1, arg2, arg3, p); } void test__GetPrivateProfileSection__arg4__notuninit() { @@ -5655,8 +5855,9 @@ void test__GetPrivateProfileSectionA__leakignore() { } void test__GetPrivateProfileSectionA__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - GetPrivateProfileSectionA(NULL, arg2, arg3, arg4); + GetPrivateProfileSectionA(p, arg2, arg3, arg4); } void test__GetPrivateProfileSectionA__arg1__notuninit() { @@ -5666,8 +5867,9 @@ void test__GetPrivateProfileSectionA__arg1__notuninit() { } void test__GetPrivateProfileSectionA__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - GetPrivateProfileSectionA(arg1, NULL, arg3, arg4); + GetPrivateProfileSectionA(arg1, p, arg3, arg4); } void test__GetPrivateProfileSectionA__arg3__notuninit() { @@ -5677,8 +5879,9 @@ void test__GetPrivateProfileSectionA__arg3__notuninit() { } void test__GetPrivateProfileSectionA__arg4__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - GetPrivateProfileSectionA(arg1, arg2, arg3, NULL); + GetPrivateProfileSectionA(arg1, arg2, arg3, p); } void test__GetPrivateProfileSectionA__arg4__notuninit() { @@ -5701,8 +5904,9 @@ void test__GetPrivateProfileSectionW__leakignore() { } void test__GetPrivateProfileSectionW__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - GetPrivateProfileSectionW(NULL, arg2, arg3, arg4); + GetPrivateProfileSectionW(p, arg2, arg3, arg4); } void test__GetPrivateProfileSectionW__arg1__notuninit() { @@ -5712,8 +5916,9 @@ void test__GetPrivateProfileSectionW__arg1__notuninit() { } void test__GetPrivateProfileSectionW__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - GetPrivateProfileSectionW(arg1, NULL, arg3, arg4); + GetPrivateProfileSectionW(arg1, p, arg3, arg4); } void test__GetPrivateProfileSectionW__arg3__notuninit() { @@ -5723,8 +5928,9 @@ void test__GetPrivateProfileSectionW__arg3__notuninit() { } void test__GetPrivateProfileSectionW__arg4__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - GetPrivateProfileSectionW(arg1, arg2, arg3, NULL); + GetPrivateProfileSectionW(arg1, arg2, arg3, p); } void test__GetPrivateProfileSectionW__arg4__notuninit() { @@ -5747,8 +5953,9 @@ void test__GetPrivateProfileSectionNames__leakignore() { } void test__GetPrivateProfileSectionNames__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - GetPrivateProfileSectionNames(NULL, arg2, arg3); + GetPrivateProfileSectionNames(p, arg2, arg3); } void test__GetPrivateProfileSectionNames__arg2__notuninit() { @@ -5758,8 +5965,9 @@ void test__GetPrivateProfileSectionNames__arg2__notuninit() { } void test__GetPrivateProfileSectionNames__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - GetPrivateProfileSectionNames(arg1, arg2, NULL); + GetPrivateProfileSectionNames(arg1, arg2, p); } void test__GetPrivateProfileSectionNames__arg3__notuninit() { @@ -5782,8 +5990,9 @@ void test__GetPrivateProfileSectionNamesA__leakignore() { } void test__GetPrivateProfileSectionNamesA__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - GetPrivateProfileSectionNamesA(NULL, arg2, arg3); + GetPrivateProfileSectionNamesA(p, arg2, arg3); } void test__GetPrivateProfileSectionNamesA__arg2__notuninit() { @@ -5793,8 +6002,9 @@ void test__GetPrivateProfileSectionNamesA__arg2__notuninit() { } void test__GetPrivateProfileSectionNamesA__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - GetPrivateProfileSectionNamesA(arg1, arg2, NULL); + GetPrivateProfileSectionNamesA(arg1, arg2, p); } void test__GetPrivateProfileSectionNamesA__arg3__notuninit() { @@ -5817,8 +6027,9 @@ void test__GetPrivateProfileSectionNamesW__leakignore() { } void test__GetPrivateProfileSectionNamesW__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - GetPrivateProfileSectionNamesW(NULL, arg2, arg3); + GetPrivateProfileSectionNamesW(p, arg2, arg3); } void test__GetPrivateProfileSectionNamesW__arg2__notuninit() { @@ -5828,8 +6039,9 @@ void test__GetPrivateProfileSectionNamesW__arg2__notuninit() { } void test__GetPrivateProfileSectionNamesW__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - GetPrivateProfileSectionNamesW(arg1, arg2, NULL); + GetPrivateProfileSectionNamesW(arg1, arg2, p); } void test__GetPrivateProfileSectionNamesW__arg3__notuninit() { @@ -5870,8 +6082,9 @@ void test__GetPrivateProfileString__arg3__notuninit() { } void test__GetPrivateProfileString__arg4__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - GetPrivateProfileString(arg1, arg2, arg3, NULL, arg5, arg6); + GetPrivateProfileString(arg1, arg2, arg3, p, arg5, arg6); } void test__GetPrivateProfileString__arg5__notuninit() { @@ -5881,8 +6094,9 @@ void test__GetPrivateProfileString__arg5__notuninit() { } void test__GetPrivateProfileString__arg6__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - GetPrivateProfileString(arg1, arg2, arg3, arg4, arg5, NULL); + GetPrivateProfileString(arg1, arg2, arg3, arg4, arg5, p); } void test__GetPrivateProfileString__arg6__notuninit() { @@ -5923,8 +6137,9 @@ void test__GetPrivateProfileStringA__arg3__notuninit() { } void test__GetPrivateProfileStringA__arg4__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - GetPrivateProfileStringA(arg1, arg2, arg3, NULL, arg5, arg6); + GetPrivateProfileStringA(arg1, arg2, arg3, p, arg5, arg6); } void test__GetPrivateProfileStringA__arg5__notuninit() { @@ -5934,8 +6149,9 @@ void test__GetPrivateProfileStringA__arg5__notuninit() { } void test__GetPrivateProfileStringA__arg6__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - GetPrivateProfileStringA(arg1, arg2, arg3, arg4, arg5, NULL); + GetPrivateProfileStringA(arg1, arg2, arg3, arg4, arg5, p); } void test__GetPrivateProfileStringA__arg6__notuninit() { @@ -5976,8 +6192,9 @@ void test__GetPrivateProfileStringW__arg3__notuninit() { } void test__GetPrivateProfileStringW__arg4__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - GetPrivateProfileStringW(arg1, arg2, arg3, NULL, arg5, arg6); + GetPrivateProfileStringW(arg1, arg2, arg3, p, arg5, arg6); } void test__GetPrivateProfileStringW__arg5__notuninit() { @@ -5987,8 +6204,9 @@ void test__GetPrivateProfileStringW__arg5__notuninit() { } void test__GetPrivateProfileStringW__arg6__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - GetPrivateProfileStringW(arg1, arg2, arg3, arg4, arg5, NULL); + GetPrivateProfileStringW(arg1, arg2, arg3, arg4, arg5, p); } void test__GetPrivateProfileStringW__arg6__notuninit() { @@ -6011,8 +6229,9 @@ void test__GetPrivateProfileStruct__leakignore() { } void test__GetPrivateProfileStruct__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - GetPrivateProfileStruct(NULL, arg2, arg3, arg4, arg5); + GetPrivateProfileStruct(p, arg2, arg3, arg4, arg5); } void test__GetPrivateProfileStruct__arg1__notuninit() { @@ -6022,8 +6241,9 @@ void test__GetPrivateProfileStruct__arg1__notuninit() { } void test__GetPrivateProfileStruct__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - GetPrivateProfileStruct(arg1, NULL, arg3, arg4, arg5); + GetPrivateProfileStruct(arg1, p, arg3, arg4, arg5); } void test__GetPrivateProfileStruct__arg2__notuninit() { @@ -6033,8 +6253,9 @@ void test__GetPrivateProfileStruct__arg2__notuninit() { } void test__GetPrivateProfileStruct__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - GetPrivateProfileStruct(arg1, arg2, NULL, arg4, arg5); + GetPrivateProfileStruct(arg1, arg2, p, arg4, arg5); } void test__GetPrivateProfileStruct__arg4__notuninit() { @@ -6044,8 +6265,9 @@ void test__GetPrivateProfileStruct__arg4__notuninit() { } void test__GetPrivateProfileStruct__arg5__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - GetPrivateProfileStruct(arg1, arg2, arg3, arg4, NULL); + GetPrivateProfileStruct(arg1, arg2, arg3, arg4, p); } void test__GetPrivateProfileStruct__arg5__notuninit() { @@ -6068,8 +6290,9 @@ void test__GetPrivateProfileStructA__leakignore() { } void test__GetPrivateProfileStructA__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - GetPrivateProfileStructA(NULL, arg2, arg3, arg4, arg5); + GetPrivateProfileStructA(p, arg2, arg3, arg4, arg5); } void test__GetPrivateProfileStructA__arg1__notuninit() { @@ -6079,8 +6302,9 @@ void test__GetPrivateProfileStructA__arg1__notuninit() { } void test__GetPrivateProfileStructA__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - GetPrivateProfileStructA(arg1, NULL, arg3, arg4, arg5); + GetPrivateProfileStructA(arg1, p, arg3, arg4, arg5); } void test__GetPrivateProfileStructA__arg2__notuninit() { @@ -6090,8 +6314,9 @@ void test__GetPrivateProfileStructA__arg2__notuninit() { } void test__GetPrivateProfileStructA__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - GetPrivateProfileStructA(arg1, arg2, NULL, arg4, arg5); + GetPrivateProfileStructA(arg1, arg2, p, arg4, arg5); } void test__GetPrivateProfileStructA__arg4__notuninit() { @@ -6101,8 +6326,9 @@ void test__GetPrivateProfileStructA__arg4__notuninit() { } void test__GetPrivateProfileStructA__arg5__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - GetPrivateProfileStructA(arg1, arg2, arg3, arg4, NULL); + GetPrivateProfileStructA(arg1, arg2, arg3, arg4, p); } void test__GetPrivateProfileStructA__arg5__notuninit() { @@ -6125,8 +6351,9 @@ void test__GetPrivateProfileStructW__leakignore() { } void test__GetPrivateProfileStructW__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - GetPrivateProfileStructW(NULL, arg2, arg3, arg4, arg5); + GetPrivateProfileStructW(p, arg2, arg3, arg4, arg5); } void test__GetPrivateProfileStructW__arg1__notuninit() { @@ -6136,8 +6363,9 @@ void test__GetPrivateProfileStructW__arg1__notuninit() { } void test__GetPrivateProfileStructW__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - GetPrivateProfileStructW(arg1, NULL, arg3, arg4, arg5); + GetPrivateProfileStructW(arg1, p, arg3, arg4, arg5); } void test__GetPrivateProfileStructW__arg2__notuninit() { @@ -6147,8 +6375,9 @@ void test__GetPrivateProfileStructW__arg2__notuninit() { } void test__GetPrivateProfileStructW__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - GetPrivateProfileStructW(arg1, arg2, NULL, arg4, arg5); + GetPrivateProfileStructW(arg1, arg2, p, arg4, arg5); } void test__GetPrivateProfileStructW__arg4__notuninit() { @@ -6158,8 +6387,9 @@ void test__GetPrivateProfileStructW__arg4__notuninit() { } void test__GetPrivateProfileStructW__arg5__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - GetPrivateProfileStructW(arg1, arg2, arg3, arg4, NULL); + GetPrivateProfileStructW(arg1, arg2, arg3, arg4, p); } void test__GetPrivateProfileStructW__arg5__notuninit() { @@ -6188,8 +6418,9 @@ void test__BeginPaint__arg1__notuninit() { } void test__BeginPaint__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - BeginPaint(arg1, NULL); + BeginPaint(arg1, p); } void test__EndPaint__noreturn() { @@ -6212,8 +6443,9 @@ void test__EndPaint__arg1__notuninit() { } void test__EndPaint__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - EndPaint(arg1, NULL); + EndPaint(arg1, p); } void test__GetStockObject__noreturn() { @@ -6270,8 +6502,9 @@ void test__LoadIcon__arg1__notuninit() { } void test__LoadIcon__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = LoadIcon(arg1, NULL); + result = LoadIcon(arg1, p); } void test__LoadIcon__arg2__notuninit() { @@ -6305,8 +6538,9 @@ void test__LoadIconA__arg1__notuninit() { } void test__LoadIconA__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = LoadIconA(arg1, NULL); + result = LoadIconA(arg1, p); } void test__LoadIconA__arg2__notuninit() { @@ -6340,8 +6574,9 @@ void test__LoadIconW__arg1__notuninit() { } void test__LoadIconW__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = LoadIconW(arg1, NULL); + result = LoadIconW(arg1, p); } void test__LoadIconW__arg2__notuninit() { @@ -6388,8 +6623,9 @@ void test__UpdateWindow__leakignore() { } void test__UpdateWindow__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - UpdateWindow(NULL); + UpdateWindow(p); } void test__UpdateWindow__arg1__notuninit() { @@ -6412,8 +6648,9 @@ void test__EnableWindow__leakignore() { } void test__EnableWindow__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - EnableWindow(NULL, arg2); + EnableWindow(p, arg2); } void test__EnableWindow__arg1__notuninit() { @@ -6964,8 +7201,9 @@ void test__SetWindowText__leakignore() { } void test__SetWindowText__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - SetWindowText(NULL, arg2); + SetWindowText(p, arg2); } void test__SetWindowText__arg1__notuninit() { @@ -6975,8 +7213,9 @@ void test__SetWindowText__arg1__notuninit() { } void test__SetWindowText__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - SetWindowText(arg1, NULL); + SetWindowText(arg1, p); } void test__SetWindowText__arg2__notuninit() { @@ -6999,8 +7238,9 @@ void test__SetWindowTextA__leakignore() { } void test__SetWindowTextA__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - SetWindowTextA(NULL, arg2); + SetWindowTextA(p, arg2); } void test__SetWindowTextA__arg1__notuninit() { @@ -7010,8 +7250,9 @@ void test__SetWindowTextA__arg1__notuninit() { } void test__SetWindowTextA__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - SetWindowTextA(arg1, NULL); + SetWindowTextA(arg1, p); } void test__SetWindowTextA__arg2__notuninit() { @@ -7034,8 +7275,9 @@ void test__SetWindowTextW__leakignore() { } void test__SetWindowTextW__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - SetWindowTextW(NULL, arg2); + SetWindowTextW(p, arg2); } void test__SetWindowTextW__arg1__notuninit() { @@ -7045,8 +7287,9 @@ void test__SetWindowTextW__arg1__notuninit() { } void test__SetWindowTextW__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - SetWindowTextW(arg1, NULL); + SetWindowTextW(arg1, p); } void test__SetWindowTextW__arg2__notuninit() { @@ -7069,8 +7312,9 @@ void test__RegisterClass__leakignore() { } void test__RegisterClass__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - RegisterClass(NULL); + RegisterClass(p); } void test__RegisterClass__arg1__notuninit() { @@ -7093,8 +7337,9 @@ void test__RegisterClassEx__leakignore() { } void test__RegisterClassEx__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - RegisterClassEx(NULL); + RegisterClassEx(p); } void test__RegisterClassEx__arg1__notuninit() { @@ -7285,8 +7530,9 @@ void test__GlobalLock__leakignore() { } void test__GlobalLock__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - GlobalLock(NULL); + GlobalLock(p); } void test__GlobalLock__arg1__notuninit() { @@ -7309,8 +7555,9 @@ void test__GlobalUnlock__leakignore() { } void test__GlobalUnlock__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - GlobalUnlock(NULL); + GlobalUnlock(p); } void test__GlobalUnlock__arg1__notuninit() { @@ -7403,8 +7650,9 @@ void test___rmdir__leakignore() { } void test___rmdir__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _rmdir(NULL); + _rmdir(p); } void test___rmdir__arg1__notuninit() { @@ -7427,8 +7675,9 @@ void test___wrmdir__leakignore() { } void test___wrmdir__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _wrmdir(NULL); + _wrmdir(p); } void test___wrmdir__arg1__notuninit() { @@ -7451,8 +7700,9 @@ void test___mkdir__leakignore() { } void test___mkdir__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _mkdir(NULL); + _mkdir(p); } void test___mkdir__arg1__notuninit() { @@ -7475,8 +7725,9 @@ void test___wmkdir__leakignore() { } void test___wmkdir__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _wmkdir(NULL); + _wmkdir(p); } void test___wmkdir__arg1__notuninit() { @@ -7569,8 +7820,9 @@ void test__SetWaitableTimer__arg1__notuninit() { } void test__SetWaitableTimer__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - SetWaitableTimer(arg1, NULL, arg3, arg4, arg5, arg6); + SetWaitableTimer(arg1, p, arg3, arg4, arg5, arg6); } void test__SetWaitableTimer__arg2__notuninit() { @@ -7636,8 +7888,9 @@ void test___pclose__noreturn() { } void test___pclose__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _pclose(NULL); + _pclose(p); } void test___pclose__arg1__notuninit() { @@ -7659,8 +7912,9 @@ void test___popen__useretval() { } void test___popen__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = _popen(NULL, arg2); + result = _popen(p, arg2); } void test___popen__arg1__notuninit() { @@ -7670,8 +7924,9 @@ void test___popen__arg1__notuninit() { } void test___popen__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = _popen(arg1, NULL); + result = _popen(arg1, p); } void test___popen__arg2__notuninit() { @@ -7693,8 +7948,9 @@ void test___wpopen__useretval() { } void test___wpopen__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = _wpopen(NULL, arg2); + result = _wpopen(p, arg2); } void test___wpopen__arg1__notuninit() { @@ -7704,8 +7960,9 @@ void test___wpopen__arg1__notuninit() { } void test___wpopen__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = _wpopen(arg1, NULL); + result = _wpopen(arg1, p); } void test___wpopen__arg2__notuninit() { @@ -7727,8 +7984,9 @@ void test___tpopen__useretval() { } void test___tpopen__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = _tpopen(NULL, arg2); + result = _tpopen(p, arg2); } void test___tpopen__arg1__notuninit() { @@ -7738,8 +7996,9 @@ void test___tpopen__arg1__notuninit() { } void test___tpopen__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = _tpopen(arg1, NULL); + result = _tpopen(arg1, p); } void test___tpopen__arg2__notuninit() { @@ -7767,8 +8026,9 @@ void test___mktemp__leakignore() { } void test___mktemp__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = _mktemp(NULL); + result = _mktemp(p); } void test___mktemp__arg1__notuninit() { @@ -7796,8 +8056,9 @@ void test___wmktemp__leakignore() { } void test___wmktemp__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = _wmktemp(NULL); + result = _wmktemp(p); } void test___wmktemp__arg1__notuninit() { @@ -7819,8 +8080,9 @@ void test__FindFirstFileEx__useretval() { } void test__FindFirstFileEx__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = FindFirstFileEx(NULL, arg2, arg3, arg4, arg5, arg6); + result = FindFirstFileEx(p, arg2, arg3, arg4, arg5, arg6); } void test__FindFirstFileEx__arg1__notuninit() { @@ -7836,8 +8098,9 @@ void test__FindFirstFileEx__arg2__notuninit() { } void test__FindFirstFileEx__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = FindFirstFileEx(arg1, arg2, NULL, arg4, arg5, arg6); + result = FindFirstFileEx(arg1, arg2, p, arg4, arg5, arg6); } void test__FindFirstFileEx__arg4__notuninit() { @@ -7865,8 +8128,9 @@ void test__FindFirstFileExA__useretval() { } void test__FindFirstFileExA__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = FindFirstFileExA(NULL, arg2, arg3, arg4, arg5, arg6); + result = FindFirstFileExA(p, arg2, arg3, arg4, arg5, arg6); } void test__FindFirstFileExA__arg1__notuninit() { @@ -7882,8 +8146,9 @@ void test__FindFirstFileExA__arg2__notuninit() { } void test__FindFirstFileExA__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = FindFirstFileExA(arg1, arg2, NULL, arg4, arg5, arg6); + result = FindFirstFileExA(arg1, arg2, p, arg4, arg5, arg6); } void test__FindFirstFileExA__arg4__notuninit() { @@ -7911,8 +8176,9 @@ void test__FindFirstFileExW__useretval() { } void test__FindFirstFileExW__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = FindFirstFileExW(NULL, arg2, arg3, arg4, arg5, arg6); + result = FindFirstFileExW(p, arg2, arg3, arg4, arg5, arg6); } void test__FindFirstFileExW__arg1__notuninit() { @@ -7928,8 +8194,9 @@ void test__FindFirstFileExW__arg2__notuninit() { } void test__FindFirstFileExW__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = FindFirstFileExW(arg1, arg2, NULL, arg4, arg5, arg6); + result = FindFirstFileExW(arg1, arg2, p, arg4, arg5, arg6); } void test__FindFirstFileExW__arg4__notuninit() { @@ -7957,8 +8224,9 @@ void test__FindFirstFile__useretval() { } void test__FindFirstFile__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = FindFirstFile(NULL, arg2); + result = FindFirstFile(p, arg2); } void test__FindFirstFile__arg1__notuninit() { @@ -7968,8 +8236,9 @@ void test__FindFirstFile__arg1__notuninit() { } void test__FindFirstFile__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = FindFirstFile(arg1, NULL); + result = FindFirstFile(arg1, p); } void test__FindFirstFileW__noreturn() { @@ -7985,8 +8254,9 @@ void test__FindFirstFileW__useretval() { } void test__FindFirstFileW__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = FindFirstFileW(NULL, arg2); + result = FindFirstFileW(p, arg2); } void test__FindFirstFileW__arg1__notuninit() { @@ -7996,8 +8266,9 @@ void test__FindFirstFileW__arg1__notuninit() { } void test__FindFirstFileW__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = FindFirstFileW(arg1, NULL); + result = FindFirstFileW(arg1, p); } void test__FindFirstFileA__noreturn() { @@ -8013,8 +8284,9 @@ void test__FindFirstFileA__useretval() { } void test__FindFirstFileA__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = FindFirstFileA(NULL, arg2); + result = FindFirstFileA(p, arg2); } void test__FindFirstFileA__arg1__notuninit() { @@ -8024,8 +8296,9 @@ void test__FindFirstFileA__arg1__notuninit() { } void test__FindFirstFileA__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = FindFirstFileA(arg1, NULL); + result = FindFirstFileA(arg1, p); } void test__FindClose__noreturn() { @@ -8036,8 +8309,9 @@ void test__FindClose__noreturn() { } void test__FindClose__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - FindClose(NULL); + FindClose(p); } void test__FindClose__arg1__notuninit() { @@ -8107,8 +8381,9 @@ void test__FindNextFile__leakignore() { } void test__FindNextFile__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = FindNextFile(NULL, arg2); + result = FindNextFile(p, arg2); } void test__FindNextFile__arg1__notuninit() { @@ -8118,8 +8393,9 @@ void test__FindNextFile__arg1__notuninit() { } void test__FindNextFile__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = FindNextFile(arg1, NULL); + result = FindNextFile(arg1, p); } void test__FindNextFileW__noreturn() { @@ -8141,8 +8417,9 @@ void test__FindNextFileW__leakignore() { } void test__FindNextFileW__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = FindNextFileW(NULL, arg2); + result = FindNextFileW(p, arg2); } void test__FindNextFileW__arg1__notuninit() { @@ -8152,8 +8429,9 @@ void test__FindNextFileW__arg1__notuninit() { } void test__FindNextFileW__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = FindNextFileW(arg1, NULL); + result = FindNextFileW(arg1, p); } void test__FindNextFileA__noreturn() { @@ -8175,8 +8453,9 @@ void test__FindNextFileA__leakignore() { } void test__FindNextFileA__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = FindNextFileA(NULL, arg2); + result = FindNextFileA(p, arg2); } void test__FindNextFileA__arg1__notuninit() { @@ -8186,8 +8465,9 @@ void test__FindNextFileA__arg1__notuninit() { } void test__FindNextFileA__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = FindNextFileA(arg1, NULL); + result = FindNextFileA(arg1, p); } void test__SetEnvironmentVariable__noreturn() { @@ -8362,8 +8642,9 @@ void test__GetDefaultCommConfig__arg1__notuninit() { } void test__GetDefaultCommConfig__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = GetDefaultCommConfig(arg1, NULL, arg3); + result = GetDefaultCommConfig(arg1, p, arg3); } void test__GetDefaultCommConfigW__noreturn() { @@ -8391,8 +8672,9 @@ void test__GetDefaultCommConfigW__arg1__notuninit() { } void test__GetDefaultCommConfigW__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = GetDefaultCommConfigW(arg1, NULL, arg3); + result = GetDefaultCommConfigW(arg1, p, arg3); } void test__GetDefaultCommConfigA__noreturn() { @@ -8420,8 +8702,9 @@ void test__GetDefaultCommConfigA__arg1__notuninit() { } void test__GetDefaultCommConfigA__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = GetDefaultCommConfigA(arg1, NULL, arg3); + result = GetDefaultCommConfigA(arg1, p, arg3); } void test__GetTempPath__noreturn() { @@ -8606,8 +8889,9 @@ void test___mbsstr__leakignore() { } void test___mbsstr__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = _mbsstr(NULL, arg2); + result = _mbsstr(p, arg2); } void test___mbsstr__arg1__notuninit() { @@ -8617,8 +8901,9 @@ void test___mbsstr__arg1__notuninit() { } void test___mbsstr__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = _mbsstr(arg1, NULL); + result = _mbsstr(arg1, p); } void test___mbsstr__arg2__notuninit() { @@ -8646,8 +8931,9 @@ void test___tcsstr__leakignore() { } void test___tcsstr__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = _tcsstr(NULL, arg2); + result = _tcsstr(p, arg2); } void test___tcsstr__arg1__notuninit() { @@ -8657,8 +8943,9 @@ void test___tcsstr__arg1__notuninit() { } void test___tcsstr__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = _tcsstr(arg1, NULL); + result = _tcsstr(arg1, p); } void test___tcsstr__arg2__notuninit() { @@ -8686,8 +8973,9 @@ void test___mbsstr_l__leakignore() { } void test___mbsstr_l__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = _mbsstr_l(NULL, arg2, arg3); + result = _mbsstr_l(p, arg2, arg3); } void test___mbsstr_l__arg1__notuninit() { @@ -8697,8 +8985,9 @@ void test___mbsstr_l__arg1__notuninit() { } void test___mbsstr_l__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = _mbsstr_l(arg1, NULL, arg3); + result = _mbsstr_l(arg1, p, arg3); } void test___mbsstr_l__arg2__notuninit() { @@ -8727,13 +9016,15 @@ void test___memccpy__leakignore() { } void test___memccpy__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _memccpy(NULL, arg2, arg3, arg4); + _memccpy(p, arg2, arg3, arg4); } void test___memccpy__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _memccpy(arg1, NULL, arg3, arg4); + _memccpy(arg1, p, arg3, arg4); } void test___memccpy__arg2__notuninit() { @@ -8774,8 +9065,9 @@ void test___open__useretval() { } void test___open__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = _open(NULL, arg2, arg3); + result = _open(p, arg2, arg3); } void test___open__arg1__notuninit() { @@ -8809,8 +9101,9 @@ void test___wopen__useretval() { } void test___wopen__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = _wopen(NULL, arg2, arg3); + result = _wopen(p, arg2, arg3); } void test___wopen__arg1__notuninit() { @@ -8844,8 +9137,9 @@ void test___topen__useretval() { } void test___topen__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = _topen(NULL, arg2, arg3); + result = _topen(p, arg2, arg3); } void test___topen__arg1__notuninit() { @@ -8893,13 +9187,15 @@ void test___swab__leakignore() { } void test___swab__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _swab(NULL, arg2, arg3); + _swab(p, arg2, arg3); } void test___swab__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _swab(arg1, NULL, arg3); + _swab(arg1, p, arg3); } void test___swab__arg2__notuninit() { @@ -8938,8 +9234,9 @@ void test___strnicmp__leakignore() { } void test___strnicmp__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = _strnicmp(NULL, arg2, arg3); + result = _strnicmp(p, arg2, arg3); } void test___strnicmp__arg1__notuninit() { @@ -8949,8 +9246,9 @@ void test___strnicmp__arg1__notuninit() { } void test___strnicmp__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = _strnicmp(arg1, NULL, arg3); + result = _strnicmp(arg1, p, arg3); } void test___strnicmp__arg2__notuninit() { @@ -8989,8 +9287,9 @@ void test___wcsnicmp__leakignore() { } void test___wcsnicmp__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = _wcsnicmp(NULL, arg2, arg3); + result = _wcsnicmp(p, arg2, arg3); } void test___wcsnicmp__arg1__notuninit() { @@ -9000,8 +9299,9 @@ void test___wcsnicmp__arg1__notuninit() { } void test___wcsnicmp__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = _wcsnicmp(arg1, NULL, arg3); + result = _wcsnicmp(arg1, p, arg3); } void test___wcsnicmp__arg2__notuninit() { @@ -9040,8 +9340,9 @@ void test___mbsnicmp__leakignore() { } void test___mbsnicmp__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = _mbsnicmp(NULL, arg2, arg3); + result = _mbsnicmp(p, arg2, arg3); } void test___mbsnicmp__arg1__notuninit() { @@ -9051,8 +9352,9 @@ void test___mbsnicmp__arg1__notuninit() { } void test___mbsnicmp__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = _mbsnicmp(arg1, NULL, arg3); + result = _mbsnicmp(arg1, p, arg3); } void test___mbsnicmp__arg2__notuninit() { @@ -9091,8 +9393,9 @@ void test___tcsncicmp__leakignore() { } void test___tcsncicmp__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = _tcsncicmp(NULL, arg2, arg3); + result = _tcsncicmp(p, arg2, arg3); } void test___tcsncicmp__arg1__notuninit() { @@ -9102,8 +9405,9 @@ void test___tcsncicmp__arg1__notuninit() { } void test___tcsncicmp__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = _tcsncicmp(arg1, NULL, arg3); + result = _tcsncicmp(arg1, p, arg3); } void test___tcsncicmp__arg2__notuninit() { @@ -9142,8 +9446,9 @@ void test___tcsnicmp__leakignore() { } void test___tcsnicmp__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = _tcsnicmp(NULL, arg2, arg3); + result = _tcsnicmp(p, arg2, arg3); } void test___tcsnicmp__arg1__notuninit() { @@ -9153,8 +9458,9 @@ void test___tcsnicmp__arg1__notuninit() { } void test___tcsnicmp__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = _tcsnicmp(arg1, NULL, arg3); + result = _tcsnicmp(arg1, p, arg3); } void test___tcsnicmp__arg2__notuninit() { @@ -9193,8 +9499,9 @@ void test___strnicmp_l__leakignore() { } void test___strnicmp_l__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = _strnicmp_l(NULL, arg2, arg3, arg4); + result = _strnicmp_l(p, arg2, arg3, arg4); } void test___strnicmp_l__arg1__notuninit() { @@ -9204,8 +9511,9 @@ void test___strnicmp_l__arg1__notuninit() { } void test___strnicmp_l__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = _strnicmp_l(arg1, NULL, arg3, arg4); + result = _strnicmp_l(arg1, p, arg3, arg4); } void test___strnicmp_l__arg2__notuninit() { @@ -9250,8 +9558,9 @@ void test___wcsnicmp_l__leakignore() { } void test___wcsnicmp_l__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = _wcsnicmp_l(NULL, arg2, arg3, arg4); + result = _wcsnicmp_l(p, arg2, arg3, arg4); } void test___wcsnicmp_l__arg1__notuninit() { @@ -9261,8 +9570,9 @@ void test___wcsnicmp_l__arg1__notuninit() { } void test___wcsnicmp_l__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = _wcsnicmp_l(arg1, NULL, arg3, arg4); + result = _wcsnicmp_l(arg1, p, arg3, arg4); } void test___wcsnicmp_l__arg2__notuninit() { @@ -9307,8 +9617,9 @@ void test___mbsnicmp_l__leakignore() { } void test___mbsnicmp_l__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = _mbsnicmp_l(NULL, arg2, arg3, arg4); + result = _mbsnicmp_l(p, arg2, arg3, arg4); } void test___mbsnicmp_l__arg1__notuninit() { @@ -9318,8 +9629,9 @@ void test___mbsnicmp_l__arg1__notuninit() { } void test___mbsnicmp_l__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = _mbsnicmp_l(arg1, NULL, arg3, arg4); + result = _mbsnicmp_l(arg1, p, arg3, arg4); } void test___mbsnicmp_l__arg2__notuninit() { @@ -9364,8 +9676,9 @@ void test___tcsncicmp_l__leakignore() { } void test___tcsncicmp_l__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = _tcsncicmp_l(NULL, arg2, arg3, arg4); + result = _tcsncicmp_l(p, arg2, arg3, arg4); } void test___tcsncicmp_l__arg1__notuninit() { @@ -9375,8 +9688,9 @@ void test___tcsncicmp_l__arg1__notuninit() { } void test___tcsncicmp_l__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = _tcsncicmp_l(arg1, NULL, arg3, arg4); + result = _tcsncicmp_l(arg1, p, arg3, arg4); } void test___tcsncicmp_l__arg2__notuninit() { @@ -9522,8 +9836,9 @@ void test___mbslen_l__leakignore() { } void test___mbslen_l__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = _mbslen_l(NULL, arg2); + result = _mbslen_l(p, arg2); } void test___mbslen_l__arg1__notuninit() { @@ -9562,8 +9877,9 @@ void test___mbstrlen_l__leakignore() { } void test___mbstrlen_l__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = _mbstrlen_l(NULL, arg2); + result = _mbstrlen_l(p, arg2); } void test___mbstrlen_l__arg1__notuninit() { @@ -9602,8 +9918,9 @@ void test___tcsclen_l__leakignore() { } void test___tcsclen_l__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = _tcsclen_l(NULL, arg2); + result = _tcsclen_l(p, arg2); } void test___tcsclen_l__arg1__notuninit() { @@ -9642,8 +9959,9 @@ void test___mbslen__leakignore() { } void test___mbslen__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = _mbslen(NULL); + result = _mbslen(p); } void test___mbslen__arg1__notuninit() { @@ -9676,8 +9994,9 @@ void test___mbstrlen__leakignore() { } void test___mbstrlen__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = _mbstrlen(NULL); + result = _mbstrlen(p); } void test___mbstrlen__arg1__notuninit() { @@ -9710,8 +10029,9 @@ void test___tcslen__leakignore() { } void test___tcslen__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = _tcslen(NULL); + result = _tcslen(p); } void test___tcslen__arg1__notuninit() { @@ -9744,8 +10064,9 @@ void test___tcsclen__leakignore() { } void test___tcsclen__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = _tcsclen(NULL); + result = _tcsclen(p); } void test___tcsclen__arg1__notuninit() { @@ -9773,8 +10094,9 @@ void test___mbsrchr_l__leakignore() { } void test___mbsrchr_l__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = _mbsrchr_l(NULL, arg2, arg3); + result = _mbsrchr_l(p, arg2, arg3); } void test___mbsrchr_l__arg1__notuninit() { @@ -9814,8 +10136,9 @@ void test___mbsrchr__leakignore() { } void test___mbsrchr__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = _mbsrchr(NULL, arg2); + result = _mbsrchr(p, arg2); } void test___mbsrchr__arg1__notuninit() { @@ -9849,8 +10172,9 @@ void test___tcsrchr__leakignore() { } void test___tcsrchr__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = _tcsrchr(NULL, arg2); + result = _tcsrchr(p, arg2); } void test___tcsrchr__arg1__notuninit() { @@ -9879,8 +10203,9 @@ void test___strftime_l__leakignore() { } void test___strftime_l__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _strftime_l(NULL, arg2, arg3, arg4, arg5); + _strftime_l(p, arg2, arg3, arg4, arg5); } void test___strftime_l__arg2__notuninit() { @@ -9890,8 +10215,9 @@ void test___strftime_l__arg2__notuninit() { } void test___strftime_l__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _strftime_l(arg1, arg2, NULL, arg4, arg5); + _strftime_l(arg1, arg2, p, arg4, arg5); } void test___strftime_l__arg3__notuninit() { @@ -9901,8 +10227,9 @@ void test___strftime_l__arg3__notuninit() { } void test___strftime_l__arg4__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _strftime_l(arg1, arg2, arg3, NULL, arg5); + _strftime_l(arg1, arg2, arg3, p, arg5); } void test___strftime_l__arg4__notuninit() { @@ -9931,8 +10258,9 @@ void test___wcsftime_l__leakignore() { } void test___wcsftime_l__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _wcsftime_l(NULL, arg2, arg3, arg4, arg5); + _wcsftime_l(p, arg2, arg3, arg4, arg5); } void test___wcsftime_l__arg2__notuninit() { @@ -9942,8 +10270,9 @@ void test___wcsftime_l__arg2__notuninit() { } void test___wcsftime_l__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _wcsftime_l(arg1, arg2, NULL, arg4, arg5); + _wcsftime_l(arg1, arg2, p, arg4, arg5); } void test___wcsftime_l__arg3__notuninit() { @@ -9953,8 +10282,9 @@ void test___wcsftime_l__arg3__notuninit() { } void test___wcsftime_l__arg4__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _wcsftime_l(arg1, arg2, arg3, NULL, arg5); + _wcsftime_l(arg1, arg2, arg3, p, arg5); } void test___wcsftime_l__arg4__notuninit() { @@ -9983,8 +10313,9 @@ void test___tcsftime__leakignore() { } void test___tcsftime__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _tcsftime(NULL, arg2, arg3, arg4); + _tcsftime(p, arg2, arg3, arg4); } void test___tcsftime__arg2__notuninit() { @@ -9994,8 +10325,9 @@ void test___tcsftime__arg2__notuninit() { } void test___tcsftime__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _tcsftime(arg1, arg2, NULL, arg4); + _tcsftime(arg1, arg2, p, arg4); } void test___tcsftime__arg3__notuninit() { @@ -10005,8 +10337,9 @@ void test___tcsftime__arg3__notuninit() { } void test___tcsftime__arg4__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _tcsftime(arg1, arg2, arg3, NULL); + _tcsftime(arg1, arg2, arg3, p); } void test___tcsftime__arg4__notuninit() { @@ -10040,8 +10373,9 @@ void test___wfreopen_s__arg2__notuninit() { } void test___wfreopen_s__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = _wfreopen_s(arg1, arg2, NULL, arg4); + result = _wfreopen_s(arg1, arg2, p, arg4); } void test___wfreopen_s__arg3__notuninit() { @@ -10051,8 +10385,9 @@ void test___wfreopen_s__arg3__notuninit() { } void test___wfreopen_s__arg4__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = _wfreopen_s(arg1, arg2, arg3, NULL); + result = _wfreopen_s(arg1, arg2, arg3, p); } void test___wfreopen_s__arg4__notuninit() { @@ -10086,8 +10421,9 @@ void test___tfreopen_s__arg2__notuninit() { } void test___tfreopen_s__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = _tfreopen_s(arg1, arg2, NULL, arg4); + result = _tfreopen_s(arg1, arg2, p, arg4); } void test___tfreopen_s__arg3__notuninit() { @@ -10097,8 +10433,9 @@ void test___tfreopen_s__arg3__notuninit() { } void test___tfreopen_s__arg4__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = _tfreopen_s(arg1, arg2, arg3, NULL); + result = _tfreopen_s(arg1, arg2, arg3, p); } void test___tfreopen_s__arg4__notuninit() { @@ -10126,8 +10463,9 @@ void test___wfreopen__arg1__notuninit() { } void test___wfreopen__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = _wfreopen(arg1, NULL, arg3); + result = _wfreopen(arg1, p, arg3); } void test___wfreopen__arg2__notuninit() { @@ -10137,8 +10475,9 @@ void test___wfreopen__arg2__notuninit() { } void test___wfreopen__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = _wfreopen(arg1, arg2, NULL); + result = _wfreopen(arg1, arg2, p); } void test___wfreopen__arg3__notuninit() { @@ -10166,8 +10505,9 @@ void test___tfreopen__arg1__notuninit() { } void test___tfreopen__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = _tfreopen(arg1, NULL, arg3); + result = _tfreopen(arg1, p, arg3); } void test___tfreopen__arg2__notuninit() { @@ -10177,8 +10517,9 @@ void test___tfreopen__arg2__notuninit() { } void test___tfreopen__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = _tfreopen(arg1, arg2, NULL); + result = _tfreopen(arg1, arg2, p); } void test___tfreopen__arg3__notuninit() { @@ -10201,13 +10542,15 @@ void test___mbsncpy__leakignore() { } void test___mbsncpy__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _mbsncpy(NULL, arg2, arg3); + _mbsncpy(p, arg2, arg3); } void test___mbsncpy__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _mbsncpy(arg1, NULL, arg3); + _mbsncpy(arg1, p, arg3); } void test___mbsncpy__arg2__notuninit() { @@ -10241,13 +10584,15 @@ void test___mbsnbcpy__leakignore() { } void test___mbsnbcpy__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _mbsnbcpy(NULL, arg2, arg3); + _mbsnbcpy(p, arg2, arg3); } void test___mbsnbcpy__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _mbsnbcpy(arg1, NULL, arg3); + _mbsnbcpy(arg1, p, arg3); } void test___mbsnbcpy__arg2__notuninit() { @@ -10281,13 +10626,15 @@ void test___tcsncpy__leakignore() { } void test___tcsncpy__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _tcsncpy(NULL, arg2, arg3); + _tcsncpy(p, arg2, arg3); } void test___tcsncpy__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _tcsncpy(arg1, NULL, arg3); + _tcsncpy(arg1, p, arg3); } void test___tcsncpy__arg2__notuninit() { @@ -10321,13 +10668,15 @@ void test___strncpy_l__leakignore() { } void test___strncpy_l__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _strncpy_l(NULL, arg2, arg3, arg4); + _strncpy_l(p, arg2, arg3, arg4); } void test___strncpy_l__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _strncpy_l(arg1, NULL, arg3, arg4); + _strncpy_l(arg1, p, arg3, arg4); } void test___strncpy_l__arg2__notuninit() { @@ -10367,13 +10716,15 @@ void test___wcsncpy_l__leakignore() { } void test___wcsncpy_l__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _wcsncpy_l(NULL, arg2, arg3, arg4); + _wcsncpy_l(p, arg2, arg3, arg4); } void test___wcsncpy_l__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _wcsncpy_l(arg1, NULL, arg3, arg4); + _wcsncpy_l(arg1, p, arg3, arg4); } void test___wcsncpy_l__arg2__notuninit() { @@ -10413,13 +10764,15 @@ void test___mbsncpy_l__leakignore() { } void test___mbsncpy_l__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _mbsncpy_l(NULL, arg2, arg3, arg4); + _mbsncpy_l(p, arg2, arg3, arg4); } void test___mbsncpy_l__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _mbsncpy_l(arg1, NULL, arg3, arg4); + _mbsncpy_l(arg1, p, arg3, arg4); } void test___mbsncpy_l__arg2__notuninit() { @@ -10459,13 +10812,15 @@ void test___tcsncpy_l__leakignore() { } void test___tcsncpy_l__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _tcsncpy_l(NULL, arg2, arg3, arg4); + _tcsncpy_l(p, arg2, arg3, arg4); } void test___tcsncpy_l__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _tcsncpy_l(arg1, NULL, arg3, arg4); + _tcsncpy_l(arg1, p, arg3, arg4); } void test___tcsncpy_l__arg2__notuninit() { @@ -10505,13 +10860,15 @@ void test___localtime32_s__leakignore() { } void test___localtime32_s__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _localtime32_s(NULL, arg2); + _localtime32_s(p, arg2); } void test___localtime32_s__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _localtime32_s(arg1, NULL); + _localtime32_s(arg1, p); } void test___localtime64_s__noreturn() { @@ -10528,13 +10885,15 @@ void test___localtime64_s__leakignore() { } void test___localtime64_s__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _localtime64_s(NULL, arg2); + _localtime64_s(p, arg2); } void test___localtime64_s__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - _localtime64_s(arg1, NULL); + _localtime64_s(arg1, p); } void test__CreateDirectory__noreturn() { @@ -10821,8 +11180,9 @@ void test__LoadLibrary__noreturn() { } void test__LoadLibrary__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - LoadLibrary(NULL); + LoadLibrary(p); } void test__LoadLibrary__arg1__notuninit() { @@ -10839,8 +11199,9 @@ void test__LoadLibraryA__noreturn() { } void test__LoadLibraryA__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - LoadLibraryA(NULL); + LoadLibraryA(p); } void test__LoadLibraryA__arg1__notuninit() { @@ -10857,8 +11218,9 @@ void test__LoadLibraryW__noreturn() { } void test__LoadLibraryW__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - LoadLibraryW(NULL); + LoadLibraryW(p); } void test__LoadLibraryW__arg1__notuninit() { @@ -11016,8 +11378,9 @@ void test__GetModuleHandleEx__arg2__notuninit() { } void test__GetModuleHandleEx__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - GetModuleHandleEx(arg1, arg2, NULL); + GetModuleHandleEx(arg1, arg2, p); } void test__GetModuleHandleExA__noreturn() { @@ -11040,8 +11403,9 @@ void test__GetModuleHandleExA__arg2__notuninit() { } void test__GetModuleHandleExA__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - GetModuleHandleExA(arg1, arg2, NULL); + GetModuleHandleExA(arg1, arg2, p); } void test__GetModuleHandleExW__noreturn() { @@ -11064,8 +11428,9 @@ void test__GetModuleHandleExW__arg2__notuninit() { } void test__GetModuleHandleExW__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - GetModuleHandleExW(arg1, arg2, NULL); + GetModuleHandleExW(arg1, arg2, p); } void test__FreeLibrary__noreturn() { @@ -11139,8 +11504,9 @@ void test__GetProcAddress__arg1__notbool() { } void test__GetProcAddress__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = GetProcAddress(NULL, arg2); + result = GetProcAddress(p, arg2); } void test__GetProcAddress__arg1__notuninit() { @@ -11456,8 +11822,9 @@ void test__OpenEvent__arg2__notuninit() { } void test__OpenEvent__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - OpenEvent(arg1, arg2, NULL); + OpenEvent(arg1, arg2, p); } void test__OpenEvent__arg3__notuninit() { @@ -11491,8 +11858,9 @@ void test__OpenEventA__arg2__notuninit() { } void test__OpenEventA__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - OpenEventA(arg1, arg2, NULL); + OpenEventA(arg1, arg2, p); } void test__OpenEventA__arg3__notuninit() { @@ -11526,8 +11894,9 @@ void test__OpenEventW__arg2__notuninit() { } void test__OpenEventW__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - OpenEventW(arg1, arg2, NULL); + OpenEventW(arg1, arg2, p); } void test__OpenEventW__arg3__notuninit() { @@ -11550,8 +11919,9 @@ void test__PulseEvent__leakignore() { } void test__PulseEvent__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - PulseEvent(NULL); + PulseEvent(p); } void test__PulseEvent__arg1__notuninit() { @@ -11574,8 +11944,9 @@ void test__ResetEvent__leakignore() { } void test__ResetEvent__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - ResetEvent(NULL); + ResetEvent(p); } void test__ResetEvent__arg1__notuninit() { @@ -11598,8 +11969,9 @@ void test__SetEvent__leakignore() { } void test__SetEvent__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - SetEvent(NULL); + SetEvent(p); } void test__SetEvent__arg1__notuninit() { @@ -11621,8 +11993,9 @@ void test__InitializeCriticalSection__arg1__notbool() { } void test__InitializeCriticalSection__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - InitializeCriticalSection(NULL); + InitializeCriticalSection(p); } void test__InitializeCriticalSectionAndSpinCount__noreturn() { @@ -11638,8 +12011,9 @@ void test__InitializeCriticalSectionAndSpinCount__arg1__notbool() { } void test__InitializeCriticalSectionAndSpinCount__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - InitializeCriticalSectionAndSpinCount(NULL, arg2); + InitializeCriticalSectionAndSpinCount(p, arg2); } void test__InitializeCriticalSectionAndSpinCount__arg2__notbool() { @@ -11666,8 +12040,9 @@ void test__InitializeCriticalSectionEx__arg1__notbool() { } void test__InitializeCriticalSectionEx__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - InitializeCriticalSectionEx(NULL, arg2, arg3); + InitializeCriticalSectionEx(p, arg2, arg3); } void test__InitializeCriticalSectionEx__arg2__notbool() { @@ -11711,8 +12086,9 @@ void test__SetCriticalSectionSpinCount__arg1__notbool() { } void test__SetCriticalSectionSpinCount__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - SetCriticalSectionSpinCount(NULL, arg2); + SetCriticalSectionSpinCount(p, arg2); } void test__SetCriticalSectionSpinCount__arg2__notbool() { @@ -11739,8 +12115,9 @@ void test__DeleteCriticalSection__arg1__notbool() { } void test__DeleteCriticalSection__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - DeleteCriticalSection(NULL); + DeleteCriticalSection(p); } void test__DeleteCriticalSection__arg1__notuninit() { @@ -11768,8 +12145,9 @@ void test__EnterCriticalSection__arg1__notbool() { } void test__EnterCriticalSection__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - EnterCriticalSection(NULL); + EnterCriticalSection(p); } void test__EnterCriticalSection__arg1__notuninit() { @@ -11797,8 +12175,9 @@ void test__TryEnterCriticalSection__arg1__notbool() { } void test__TryEnterCriticalSection__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - TryEnterCriticalSection(NULL); + TryEnterCriticalSection(p); } void test__TryEnterCriticalSection__arg1__notuninit() { @@ -11826,8 +12205,9 @@ void test__LeaveCriticalSection__arg1__notbool() { } void test__LeaveCriticalSection__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - LeaveCriticalSection(NULL); + LeaveCriticalSection(p); } void test__LeaveCriticalSection__arg1__notuninit() { @@ -11850,8 +12230,9 @@ void test__lstrcat__leakignore() { } void test__lstrcat__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - lstrcat(NULL, arg2); + lstrcat(p, arg2); } void test__lstrcat__arg1__notuninit() { @@ -11861,8 +12242,9 @@ void test__lstrcat__arg1__notuninit() { } void test__lstrcat__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - lstrcat(arg1, NULL); + lstrcat(arg1, p); } void test__lstrcat__arg2__notuninit() { @@ -12148,8 +12530,9 @@ void test__OpenSemaphore__arg3__notbool() { } void test__OpenSemaphore__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - OpenSemaphore(arg1, arg2, NULL); + OpenSemaphore(arg1, arg2, p); } void test__OpenSemaphore__arg3__notuninit() { @@ -12183,8 +12566,9 @@ void test__OpenSemaphoreA__arg3__notbool() { } void test__OpenSemaphoreA__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - OpenSemaphoreA(arg1, arg2, NULL); + OpenSemaphoreA(arg1, arg2, p); } void test__OpenSemaphoreA__arg3__notuninit() { @@ -12218,8 +12602,9 @@ void test__OpenSemaphoreW__arg3__notbool() { } void test__OpenSemaphoreW__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - OpenSemaphoreW(arg1, arg2, NULL); + OpenSemaphoreW(arg1, arg2, p); } void test__OpenSemaphoreW__arg3__notuninit() { @@ -12521,8 +12906,9 @@ void test__OpenMutex__arg3__notbool() { } void test__OpenMutex__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - OpenMutex(arg1, arg2, NULL); + OpenMutex(arg1, arg2, p); } void test__OpenMutex__arg3__notuninit() { @@ -12556,8 +12942,9 @@ void test__OpenMutexA__arg3__notbool() { } void test__OpenMutexA__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - OpenMutexA(arg1, arg2, NULL); + OpenMutexA(arg1, arg2, p); } void test__OpenMutexA__arg3__notuninit() { @@ -12591,8 +12978,9 @@ void test__OpenMutexW__arg3__notbool() { } void test__OpenMutexW__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - OpenMutexW(arg1, arg2, NULL); + OpenMutexW(arg1, arg2, p); } void test__OpenMutexW__arg3__notuninit() { @@ -12677,8 +13065,9 @@ void test__strlwr__noreturn() { } void test__strlwr__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - strlwr(NULL); + strlwr(p); } void test__strlwr__arg1__notuninit() { @@ -12695,8 +13084,9 @@ void test__strupr__noreturn() { } void test__strupr__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - strupr(NULL); + strupr(p); } void test__strupr__arg1__notuninit() { @@ -12719,8 +13109,9 @@ void test__GetLocalTime__leakignore() { } void test__GetLocalTime__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - GetLocalTime(NULL); + GetLocalTime(p); } void test__GetSystemTime__noreturn() { @@ -12737,8 +13128,9 @@ void test__GetSystemTime__leakignore() { } void test__GetSystemTime__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - GetSystemTime(NULL); + GetSystemTime(p); } void test__GetLastError__noreturn() { @@ -12780,13 +13172,15 @@ void test__AllocateAndInitializeSid__noreturn() { } void test__AllocateAndInitializeSid__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - AllocateAndInitializeSid(NULL); + AllocateAndInitializeSid(p); } void test__AllocateAndInitializeSid__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - AllocateAndInitializeSid(NULL); + AllocateAndInitializeSid(p); } void test__FreeSid__noreturn() { @@ -12847,8 +13241,9 @@ void test__HeapReAlloc__arg2__notuninit() { } void test__HeapReAlloc__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - HeapReAlloc(arg1, arg2, NULL, arg4); + HeapReAlloc(arg1, arg2, p, arg4); } void test__HeapReAlloc__arg3__notuninit() { @@ -12883,8 +13278,9 @@ void test__HeapFree__arg2__notuninit() { } void test__HeapFree__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - HeapFree(arg1, arg2, NULL); + HeapFree(arg1, arg2, p); } void test__HeapFree__arg3__notuninit() { @@ -12986,8 +13382,9 @@ void test__GetUserName__leakignore() { } void test__GetUserName__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - GetUserName(arg1, NULL); + GetUserName(arg1, p); } void test__GetUserName__arg2__notuninit() { @@ -13010,8 +13407,9 @@ void test__GetUserNameA__leakignore() { } void test__GetUserNameA__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - GetUserNameA(arg1, NULL); + GetUserNameA(arg1, p); } void test__GetUserNameA__arg2__notuninit() { @@ -13034,8 +13432,9 @@ void test__GetUserNameW__leakignore() { } void test__GetUserNameW__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - GetUserNameW(arg1, NULL); + GetUserNameW(arg1, p); } void test__GetUserNameW__arg2__notuninit() { @@ -13058,13 +13457,15 @@ void test__GetWindowText__leakignore() { } void test__GetWindowText__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - GetWindowText(NULL, arg2, arg3); + GetWindowText(p, arg2, arg3); } void test__GetWindowText__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - GetWindowText(arg1, NULL, arg3); + GetWindowText(arg1, p, arg3); } void test__GetWindowText__arg3__notuninit() { @@ -13087,13 +13488,15 @@ void test__GetWindowTextA__leakignore() { } void test__GetWindowTextA__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - GetWindowTextA(NULL, arg2, arg3); + GetWindowTextA(p, arg2, arg3); } void test__GetWindowTextA__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - GetWindowTextA(arg1, NULL, arg3); + GetWindowTextA(arg1, p, arg3); } void test__GetWindowTextA__arg3__notuninit() { @@ -13116,13 +13519,15 @@ void test__GetWindowTextW__leakignore() { } void test__GetWindowTextW__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - GetWindowTextW(NULL, arg2, arg3); + GetWindowTextW(p, arg2, arg3); } void test__GetWindowTextW__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - GetWindowTextW(arg1, NULL, arg3); + GetWindowTextW(arg1, p, arg3); } void test__GetWindowTextW__arg3__notuninit() { @@ -13220,8 +13625,9 @@ void test__bind__arg1__notuninit() { } void test__bind__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - bind(arg1, NULL, arg3); + bind(arg1, p, arg3); } void test__bind__arg3__notuninit() { @@ -13250,8 +13656,9 @@ void test__connect__arg1__notuninit() { } void test__connect__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - connect(arg1, NULL, arg3); + connect(arg1, p, arg3); } void test__connect__arg3__notuninit() { @@ -13280,13 +13687,15 @@ void test__getpeername__arg1__notuninit() { } void test__getpeername__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - getpeername(arg1, NULL, arg3); + getpeername(arg1, p, arg3); } void test__getpeername__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - getpeername(arg1, arg2, NULL); + getpeername(arg1, arg2, p); } void test__getpeername__arg3__notuninit() { @@ -13315,13 +13724,15 @@ void test__getsockname__arg1__notuninit() { } void test__getsockname__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - getsockname(arg1, NULL, arg3); + getsockname(arg1, p, arg3); } void test__getsockname__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - getsockname(arg1, arg2, NULL); + getsockname(arg1, arg2, p); } void test__getsockname__arg3__notuninit() { @@ -13362,13 +13773,15 @@ void test__getsockopt__arg3__notuninit() { } void test__getsockopt__arg4__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - getsockopt(arg1, arg2, arg3, NULL, arg5); + getsockopt(arg1, arg2, arg3, p, arg5); } void test__getsockopt__arg5__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - getsockopt(arg1, arg2, arg3, arg4, NULL); + getsockopt(arg1, arg2, arg3, arg4, p); } void test__getsockopt__arg5__notuninit() { @@ -13444,8 +13857,9 @@ void test__inet_addr__leakignore() { } void test__inet_addr__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = inet_addr(NULL); + result = inet_addr(p); } void test__inet_addr__arg1__notuninit() { @@ -13504,8 +13918,9 @@ void test__ioctlsocket__arg2__notuninit() { } void test__ioctlsocket__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - ioctlsocket(arg1, arg2, NULL); + ioctlsocket(arg1, arg2, p); } void test__listen__noreturn() { @@ -13601,8 +14016,9 @@ void test__recv__arg1__notuninit() { } void test__recv__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - recv(arg1, NULL, arg3, arg4); + recv(arg1, p, arg3, arg4); } void test__recv__arg3__notuninit() { @@ -13637,8 +14053,9 @@ void test__recvfrom__arg1__notuninit() { } void test__recvfrom__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - recvfrom(arg1, NULL, arg3, arg4, arg5, arg6); + recvfrom(arg1, p, arg3, arg4, arg5, arg6); } void test__recvfrom__arg3__notuninit() { @@ -13692,8 +14109,9 @@ void test__send__arg1__notuninit() { } void test__send__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - send(arg1, NULL, arg3, arg4); + send(arg1, p, arg3, arg4); } void test__send__arg3__notuninit() { @@ -13728,8 +14146,9 @@ void test__sendto__arg1__notuninit() { } void test__sendto__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - sendto(arg1, NULL, arg3, arg4, arg5, arg6); + sendto(arg1, p, arg3, arg4, arg5, arg6); } void test__sendto__arg3__notuninit() { @@ -13788,8 +14207,9 @@ void test__setsockopt__arg3__notuninit() { } void test__setsockopt__arg4__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - setsockopt(arg1, arg2, arg3, NULL, arg5); + setsockopt(arg1, arg2, arg3, p, arg5); } void test__setsockopt__arg5__notuninit() { @@ -13843,8 +14263,9 @@ void test__WSAStartup__arg1__notuninit() { } void test__WSAStartup__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - WSAStartup(arg1, NULL); + WSAStartup(arg1, p); } void test__WSACleanup__noreturn() { @@ -13909,8 +14330,9 @@ void test___fileno__arg1__notbool() { } void test___fileno__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - result = _fileno(NULL); + result = _fileno(p); } void test___fileno__arg1__notuninit() { diff --git a/test/cfg/generated-cfg-tests-wxwidgets.cpp b/test/cfg/generated-cfg-tests-wxwidgets.cpp index 5b15303fe..ccd7816dc 100644 --- a/test/cfg/generated-cfg-tests-wxwidgets.cpp +++ b/test/cfg/generated-cfg-tests-wxwidgets.cpp @@ -27,8 +27,9 @@ void test__wxString__Format__arg1__notbool() { } void test__wxString__Format__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - wxString::Format(NULL); + wxString::Format(p); } void test__wxString__Format__arg1__notuninit() { @@ -56,8 +57,9 @@ void test__wxString__Printf__arg1__notbool() { } void test__wxString__Printf__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - wxString::Printf(NULL); + wxString::Printf(p); } void test__wxString__Printf__arg1__notuninit() { @@ -350,8 +352,9 @@ void test__wxLogMessage__arg1__notbool() { } void test__wxLogMessage__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - wxLogMessage(NULL); + wxLogMessage(p); } void test__wxLogMessage__arg1__notuninit() { @@ -379,8 +382,9 @@ void test__wxLogVerbose__arg1__notbool() { } void test__wxLogVerbose__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - wxLogVerbose(NULL); + wxLogVerbose(p); } void test__wxLogVerbose__arg1__notuninit() { @@ -408,8 +412,9 @@ void test__wxLogWarning__arg1__notbool() { } void test__wxLogWarning__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - wxLogWarning(NULL); + wxLogWarning(p); } void test__wxLogWarning__arg1__notuninit() { @@ -437,8 +442,9 @@ void test__wxLogFatalError__arg1__notbool() { } void test__wxLogFatalError__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - wxLogFatalError(NULL); + wxLogFatalError(p); } void test__wxLogFatalError__arg1__notuninit() { @@ -466,8 +472,9 @@ void test__wxLogError__arg1__notbool() { } void test__wxLogError__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - wxLogError(NULL); + wxLogError(p); } void test__wxLogError__arg1__notuninit() { @@ -495,8 +502,9 @@ void test__wxLogTrace__arg2__notbool() { } void test__wxLogTrace__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - wxLogTrace(arg1, NULL); + wxLogTrace(arg1, p); } void test__wxLogTrace__arg2__notuninit() { @@ -524,8 +532,9 @@ void test__wxLogDebug__arg1__notbool() { } void test__wxLogDebug__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - wxLogDebug(NULL); + wxLogDebug(p); } void test__wxLogDebug__arg1__notuninit() { @@ -553,8 +562,9 @@ void test__wxLogSysError__arg1__notbool() { } void test__wxLogSysError__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - wxLogSysError(NULL); + wxLogSysError(p); } void test__wxLogSysError__arg1__notuninit() { @@ -588,8 +598,9 @@ void test__wxLogGeneric__arg2__notbool() { } void test__wxLogGeneric__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - wxLogGeneric(arg1, NULL); + wxLogGeneric(arg1, p); } void test__wxLogGeneric__arg2__notuninit() { @@ -617,8 +628,9 @@ void test__wxLogInfo__arg1__notbool() { } void test__wxLogInfo__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - wxLogInfo(NULL); + wxLogInfo(p); } void test__wxLogInfo__arg1__notuninit() { @@ -1179,8 +1191,9 @@ void test__wxTimer__SetOwner__leakignore() { } void test__wxTimer__SetOwner__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - wxTimer::SetOwner(NULL, arg2); + wxTimer::SetOwner(p, arg2); } void test__wxTimer__SetOwner__arg1__notuninit() { @@ -2582,8 +2595,9 @@ void test__wxArtProvider__Insert__leakignore() { } void test__wxArtProvider__Insert__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - wxArtProvider::Insert(NULL); + wxArtProvider::Insert(p); } void test__wxArtProvider__Insert__arg1__notuninit() { @@ -2700,8 +2714,9 @@ void test__wxDataViewCustomRenderer__Activate__arg1__notuninit() { } void test__wxDataViewCustomRenderer__Activate__arg2__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - wxDataViewCustomRenderer::Activate(arg1, NULL, arg3, arg4); + wxDataViewCustomRenderer::Activate(arg1, p, arg3, arg4); } void test__wxDataViewCustomRenderer__Activate__arg3__notuninit() { @@ -2742,8 +2757,9 @@ void test__wxDataViewCustomRenderer__LeftClick__arg2__notuninit() { } void test__wxDataViewCustomRenderer__LeftClick__arg3__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - wxDataViewCustomRenderer::LeftClick(arg1, arg2, NULL, arg4, arg5); + wxDataViewCustomRenderer::LeftClick(arg1, arg2, p, arg4, arg5); } void test__wxDataViewCustomRenderer__LeftClick__arg4__notuninit() { @@ -2809,8 +2825,9 @@ void test__wxDos2UnixFilename__leakignore() { } void test__wxDos2UnixFilename__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - wxDos2UnixFilename(NULL); + wxDos2UnixFilename(p); } void test__wxDos2UnixFilename__arg1__notuninit() { @@ -2857,8 +2874,9 @@ void test__wxSizerItem__SetWindow__leakignore() { } void test__wxSizerItem__SetWindow__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - wxSizerItem::SetWindow(NULL); + wxSizerItem::SetWindow(p); } void test__wxSizerItem__SetWindow__arg1__notuninit() { @@ -2881,8 +2899,9 @@ void test__wxSizerItem__SetSizer__leakignore() { } void test__wxSizerItem__SetSizer__arg1__notnull() { + const char *p = NULL; // cppcheck-suppress nullPointer - wxSizerItem::SetSizer(NULL); + wxSizerItem::SetSizer(p); } void test__wxSizerItem__SetSizer__arg1__notuninit() { diff --git a/tools/generate_cfg_tests.cpp b/tools/generate_cfg_tests.cpp index 5d4c202cf..cb96a07a6 100644 --- a/tools/generate_cfg_tests.cpp +++ b/tools/generate_cfg_tests.cpp @@ -192,7 +192,7 @@ static void testfunction(const tinyxml2::XMLElement *node, const std::string &fu } if (notnull) { - std::cout << testFunctionArg(functionName, useretval, "notnull", argNr, numberOfArgs, "", "nullPointer", "NULL") << std::endl << std::endl; + std::cout << testFunctionArg(functionName, useretval, "notnull", argNr, numberOfArgs, "const char *p = NULL;", "nullPointer", "p") << std::endl << std::endl; } if (notuninit) {