mirror of
https://github.com/troglobit/finit.git
synced 2026-10-28 12:30:44 +00:00
Merge pull request #31 from thezbyg/master
Fix SIGSEGV due to writes to const char array. Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
commit
d48da81026
1 file changed
+3
-1
@@ -519,10 +519,12 @@ int conf_parse_config(void)
|
|||||||
|
|
||||||
result = parse_conf(FINIT_CONF);
|
result = parse_conf(FINIT_CONF);
|
||||||
if (!tty_num()) {
|
if (!tty_num()) {
|
||||||
char *fallback = FALLBACK_SHELL;
|
char *fallback = NULL;
|
||||||
|
|
||||||
if (console)
|
if (console)
|
||||||
fallback = console;
|
fallback = console;
|
||||||
|
else
|
||||||
|
fallback = strdup(FALLBACK_SHELL);
|
||||||
|
|
||||||
tty_register(fallback);
|
tty_register(fallback);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user