summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2018-02-04 16:28:35 +0100
committerSlávek Banko <slavek.banko@axis.cz>2018-02-04 16:28:52 +0100
commit1e9cf2640cfcf4b400c5f75c42f2437dcd82f06c (patch)
tree985bba410e90a924662cd73f2227a9564765e900
parent2c2086d2420a077534e105c64a7e73b83b35e4ca (diff)
downloadgtk-qt-engine-1e9cf2640cfcf4b400c5f75c42f2437dcd82f06c.tar.gz
gtk-qt-engine-1e9cf2640cfcf4b400c5f75c42f2437dcd82f06c.zip
Fix FTBFS with clang
Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 1045125941918516e9cbf55f8162c521e3588317)
-rw-r--r--src/qt_qt_wrapper.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/qt_qt_wrapper.cpp b/src/qt_qt_wrapper.cpp
index a701f52..2474058 100644
--- a/src/qt_qt_wrapper.cpp
+++ b/src/qt_qt_wrapper.cpp
@@ -571,8 +571,9 @@ TQString kdeFindDir(const TQString& suffix, const TQString& file1, const TQStrin
TQString runCommand(const TQString& command)
{
FILE* p = popen(command.latin1(), "r");
- if ((p == NULL) || (p < 0))
+ if (p == NULL) {
return TQString();
+ }
TQString ret;
while (!feof(p))