summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2018-02-04 16:28:35 +0100
committerSlávek Banko <[email protected]>2018-02-04 16:28:35 +0100
commit1045125941918516e9cbf55f8162c521e3588317 (patch)
tree05c6fecdded5ae38ca0bcf30f6c78261d0913729 /src
parent76cb77b1a7c280f2ed94505caca38d5657092309 (diff)
downloadgtk-qt-engine-1045125941918516e9cbf55f8162c521e3588317.tar.gz
gtk-qt-engine-1045125941918516e9cbf55f8162c521e3588317.zip
Fix FTBFS with clang
Signed-off-by: Slávek Banko <[email protected]>
Diffstat (limited to 'src')
-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))