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:
Joachim Nilsson
2016-05-17 20:28:35 +02:00
+3 -1
View File
@@ -519,10 +519,12 @@ int conf_parse_config(void)
result = parse_conf(FINIT_CONF);
if (!tty_num()) {
char *fallback = FALLBACK_SHELL;
char *fallback = NULL;
if (console)
fallback = console;
else
fallback = strdup(FALLBACK_SHELL);
tty_register(fallback);
}