summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
Diffstat (limited to 'Src')
-rw-r--r--Src/params.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/Src/params.c b/Src/params.c
index 2475f2861..3bca12bd8 100644
--- a/Src/params.c
+++ b/Src/params.c
@@ -2873,11 +2873,15 @@ pipestatgetfn(Param pm)
 static void
 pipestatsetfn(Param pm, char **x)
 {
-    int i;
+    if (x) {
+        int i;
 
-    for (i = 0; *x && i < MAX_PIPESTATS; i++, x++)
-	pipestats[i] = atoi(*x);
-    numpipestats = i;
+        for (i = 0; *x && i < MAX_PIPESTATS; i++, x++)
+            pipestats[i] = atoi(*x);
+            numpipestats = i;
+    }
+    else
+        numpipestats = 0;
 }
 
 /**/