From 4e141391c7ecebb699725278dfe8341a6ed1c8e8 Mon Sep 17 00:00:00 2001 From: midipix Date: Aug 16 2024 20:14:15 +0000 Subject: toks_get_driver_ctx(): properly handle --daemon's option value being optional. --- 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;