diff --git a/cfg/std.cfg b/cfg/std.cfg
index d497eec8d..399f85e5f 100644
--- a/cfg/std.cfg
+++ b/cfg/std.cfg
@@ -6185,6 +6185,7 @@ The obsolete function 'gets' is called. With 'gets' you'll get a buffer overrun
false
+
diff --git a/test/cfg/std.c b/test/cfg/std.c
index 04cc54edb..d5f5adc66 100644
--- a/test/cfg/std.c
+++ b/test/cfg/std.c
@@ -4356,6 +4356,13 @@ void uninitvar_system(void)
(void)system(c);
}
+void nullPointer_system(char *c)
+{
+ // If a null pointer is given, command processor is checked for existence
+ (void)system(NULL);
+ (void)system(c);
+}
+
void uninitvar_zonetime(void)
{
time_t *tp;
diff --git a/test/cfg/std.cpp b/test/cfg/std.cpp
index 4d956fb2b..56ea2bddc 100644
--- a/test/cfg/std.cpp
+++ b/test/cfg/std.cpp
@@ -3660,6 +3660,13 @@ void uninitvar_system(void)
(void)std::system(c);
}
+void nullPointer_system(char *c)
+{
+ // If a null pointer is given, command processor is checked for existence
+ (void)std::system(NULL);
+ (void)std::system(c);
+}
+
void uninitvar_setw(void)
{
int i;