diff --git a/configuration.c b/configuration.c index 18c68f3480..8507187e07 100644 --- a/configuration.c +++ b/configuration.c @@ -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 diff --git a/menu/menu_setting.c b/menu/menu_setting.c index 0a190275f1..d07081eed6 100644 --- a/menu/menu_setting.c +++ b/menu/menu_setting.c @@ -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);