mirror of
https://github.com/troglobit/finit.git
synced 2026-10-10 16:52:39 +07:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user