summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2018-02-04 15:29:44 (GMT)
committer Slávek Banko <slavek.banko@axis.cz>2018-02-04 15:29:44 (GMT)
commit2833af123799bcf16c9960da3ad21c2113f9c01c (patch)
tree7973a2e45e5cf9ba5492e93eba6a36d6aca4c186
parent468aec90e90cfb027f337188cba07592dd909f61 (diff)
downloadgtk3-tqt-engine-2833af12.zip
gtk3-tqt-engine-2833af12.tar.gz
Fix FTBFS with clang
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
-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))