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 <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg
2022-04-14 10:02:11 +02:00
parent fd34914936
commit 16aef80682
+1
View File
@@ -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);