summaryrefslogtreecommitdiff
path: root/usr/src/cmd/logadm/conf.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/cmd/logadm/conf.c')
-rw-r--r--usr/src/cmd/logadm/conf.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/usr/src/cmd/logadm/conf.c b/usr/src/cmd/logadm/conf.c
index 0d22957a5e..aa877d3dd2 100644
--- a/usr/src/cmd/logadm/conf.c
+++ b/usr/src/cmd/logadm/conf.c
@@ -262,6 +262,14 @@ conf_scan(const char *fname, char *buf, int buflen, int timescan)
ArgsI = 0;
while (ap = nexttok(&line))
fillargs(ap);
+
+ /*
+ * If there is no next token on the line, make sure that
+ * we get a non-NULL Args array.
+ */
+ if (Args == NULL)
+ fillargs(NULL);
+
Args[ArgsI] = NULL;
LOCAL_ERR_BEGIN {