summaryrefslogtreecommitdiff
path: root/src/logger.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-09-16 22:06:25 +0300
committerAndrei Karas <akaras@inbox.ru>2011-09-16 22:06:25 +0300
commit50ecf3334aeb0a54a95672cc7bb47cfcf54021e8 (patch)
treeb6ede7dda9e996ec09a35b8ba7750e4cf4078b6a /src/logger.cpp
parent0680f936ce4be3cbd0cba338d3793d4a7782db60 (diff)
downloadmv-50ecf3334aeb0a54a95672cc7bb47cfcf54021e8.tar.gz
mv-50ecf3334aeb0a54a95672cc7bb47cfcf54021e8.tar.bz2
mv-50ecf3334aeb0a54a95672cc7bb47cfcf54021e8.tar.xz
mv-50ecf3334aeb0a54a95672cc7bb47cfcf54021e8.zip
Fix compilation warnings.
Diffstat (limited to 'src/logger.cpp')
-rw-r--r--src/logger.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/logger.cpp b/src/logger.cpp
index 2ec5c331e..8ce92c6d6 100644
--- a/src/logger.cpp
+++ b/src/logger.cpp
@@ -207,7 +207,8 @@ void Logger::error(const std::string &error_text)
#elif defined __linux__ || __linux
std::cerr << "Error: " << error_text << std::endl;
std::string msg = "xmessage \"" + error_text + "\"";
- system(msg.c_str());
+ if (system(msg.c_str()) == -1)
+ std::cerr << "Error: " << error_text << std::endl;
#else
std::cerr << "Error: " << error_text << std::endl;
#endif