From 60f9f8329c7b2c9b25de0a776e058a30ac96cc03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Andr=C3=A9=20Santoni?= Date: Wed, 23 Mar 2016 01:25:27 +0700 Subject: [PATCH] (Menu) Forgot that --- configuration.c | 2 +- menu/menu_setting.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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);