From 16aef806826e57732ae51615669361b1106a6e21 Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Thu, 14 Apr 2022 10:02:11 +0200 Subject: [PATCH] Silence Coverity Scan NULL ptr deref warning Explicitly set arg to non-NULL value. The call to conf() later will steer up the value to point to the full path of the user's finit.conf Signed-off-by: Joachim Wiberg --- src/serv.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/serv.c b/src/serv.c index 66710fe9..bd838ad8 100644 --- a/src/serv.c +++ b/src/serv.c @@ -394,6 +394,7 @@ int serv_edit(char *arg) if (!arg || !arg[0]) { if (!yorn("Do you want to edit %s (y/N)? ", FINIT_CONF)) return 0; + arg = ""; } return do_edit(arg, icreate);