aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/debug_utilities/object_sizes.cpp1
-rw-r--r--src/wallet/wallet_rpc_server.cpp2
2 files changed, 1 insertions, 2 deletions
diff --git a/src/debug_utilities/object_sizes.cpp b/src/debug_utilities/object_sizes.cpp
index 63b702700..e58da7395 100644
--- a/src/debug_utilities/object_sizes.cpp
+++ b/src/debug_utilities/object_sizes.cpp
@@ -84,7 +84,6 @@ int main(int argc, char* argv[])
SL(cryptonote::txpool_tx_meta_t);
- SL(epee::net_utils::network_address_base);
SL(epee::net_utils::ipv4_network_address);
SL(epee::net_utils::network_address);
SL(epee::net_utils::connection_context_base);
diff --git a/src/wallet/wallet_rpc_server.cpp b/src/wallet/wallet_rpc_server.cpp
index 25f780134..4b5b1f84d 100644
--- a/src/wallet/wallet_rpc_server.cpp
+++ b/src/wallet/wallet_rpc_server.cpp
@@ -154,7 +154,7 @@ namespace tools
#else
#define MKDIR(path, mode) mkdir(path, mode)
#endif
- if (MKDIR(m_wallet_dir.c_str(), 0700) < 0)
+ if (!m_wallet_dir.empty() && MKDIR(m_wallet_dir.c_str(), 0700) < 0 && errno != EEXIST)
{
#ifdef _WIN32
LOG_ERROR(tr("Failed to create directory ") + m_wallet_dir);