summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--utility.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/utility.c b/utility.c
index 911d84e..c8bd573 100644
--- a/utility.c
+++ b/utility.c
@@ -743,6 +743,9 @@ extern int parse_mode(const char *s, mode_t * theMode)
char type;
char c;
+ if (s==NULL)
+ return (FALSE);
+
do {
for (;;) {
switch (c = *s++) {