(Menu) Forgot that

This commit is contained in:
Jean-André Santoni 2016-03-23 01:25:27 +07:00
parent 6b3a8112d1
commit 60f9f8329c
2 changed files with 2 additions and 2 deletions

View File

@ -2855,7 +2855,7 @@ bool config_save_file(const char *path)
#ifdef HAVE_LAKKA
if (settings->ssh_enable)
fclose(LAKKA_SSH_PATH, "w");
fclose(fopen(LAKKA_SSH_PATH, "w"));
else
remove(LAKKA_SSH_PATH);
#endif

View File

@ -3090,7 +3090,7 @@ static void ssh_enable_toggle_change_handler(void *data)
return;
if (settings && settings->ssh_enable)
fclose(LAKKA_SSH_PATH, "w");
fclose(fopen(LAKKA_SSH_PATH, "w"));
else
remove(LAKKA_SSH_PATH);