summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2018-02-04 16:29:44 +0100
committerSlávek Banko <slavek.banko@axis.cz>2018-02-04 16:29:55 +0100
commit04dad58537b8844c15df2adccc74dfe2a73a3139 (patch)
tree599c09e59ffc975b0381bb1745954541ed44b8b8
parent8be333fc16024fa3d1d2fad9b69d0baca1ee953c (diff)
downloadgtk3-tqt-engine-04dad58537b8844c15df2adccc74dfe2a73a3139.tar.gz
gtk3-tqt-engine-04dad58537b8844c15df2adccc74dfe2a73a3139.zip
Fix FTBFS with clang
Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 2833af123799bcf16c9960da3ad21c2113f9c01c)
-rw-r--r--tdegtk/tdegtk-theme.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tdegtk/tdegtk-theme.cpp b/tdegtk/tdegtk-theme.cpp
index 2f0b00f..b99c485 100644
--- a/tdegtk/tdegtk-theme.cpp
+++ b/tdegtk/tdegtk-theme.cpp
@@ -200,8 +200,9 @@ TQString tdeFindDir(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))