summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/irmd/configfile.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/irmd/configfile.c b/src/irmd/configfile.c
index 38a24433..42a8a152 100644
--- a/src/irmd/configfile.c
+++ b/src/irmd/configfile.c
@@ -564,6 +564,11 @@ static int args_to_argv(const char * args,
char * str;
int argc = 0;
+ if (args == NULL) {
+ *argv = NULL;
+ return 0;
+ }
+
str = (char *) args;
tok = strtok(str, " ");