diff --git a/src/driver/toks_driver_ctx.c b/src/driver/toks_driver_ctx.c index cf0271c..45156f3 100644 --- a/src/driver/toks_driver_ctx.c +++ b/src/driver/toks_driver_ctx.c @@ -541,10 +541,10 @@ int toks_get_driver_ctx( break; case TAG_DAEMON: - if (!strcmp("always",entry->arg)) + if (entry->arg && !strcmp("always",entry->arg)) cctx.drvflags |= TOKS_DRIVER_DAEMON_ALWAYS; - else if (!strcmp("never",entry->arg)) + else if (entry->arg && !strcmp("never",entry->arg)) cctx.drvflags |= TOKS_DRIVER_DAEMON_NEVER; break;