From e86c5b9b53254899a2103087cfdc505d28fc9c77 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Sun, 18 Sep 2016 09:57:42 +0100 Subject: [PATCH] miner: do not try to save config if the path isn't set This saves on an exception dump when trying to write to / after finding a block. --- src/cryptonote_core/miner.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cryptonote_core/miner.cpp b/src/cryptonote_core/miner.cpp index bad3f30bd..ec717a13d 100644 --- a/src/cryptonote_core/miner.cpp +++ b/src/cryptonote_core/miner.cpp @@ -391,7 +391,8 @@ namespace cryptonote }else { //success update, lets update config - epee::serialization::store_t_to_json_file(m_config, m_config_folder_path + "/" + MINER_CONFIG_FILE_NAME); + if (!m_config_folder_path.empty()) + epee::serialization::store_t_to_json_file(m_config, m_config_folder_path + "/" + MINER_CONFIG_FILE_NAME); } } nonce+=m_threads_total;