mirror of
https://github.com/troglobit/finit.git
synced 2026-11-24 20:21:44 +00:00
Handle improbable case were dev may be NULL, found by Coverity
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
765ef63274
commit
41647a814c
1 file changed
+2
-1
@@ -270,7 +270,8 @@ again:
|
|||||||
/* Replace @console with actual device */
|
/* Replace @console with actual device */
|
||||||
if (arg && !strcmp(arg, "@console"))
|
if (arg && !strcmp(arg, "@console"))
|
||||||
arg = dev;
|
arg = dev;
|
||||||
entry->args[j++] = strdup(arg);
|
if (arg)
|
||||||
|
entry->args[j++] = strdup(arg);
|
||||||
}
|
}
|
||||||
entry->args[++j] = NULL;
|
entry->args[++j] = NULL;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user