summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2018-02-04 16:29:44 +0100
committerSlávek Banko <[email protected]>2018-02-04 16:29:44 +0100
commit2833af123799bcf16c9960da3ad21c2113f9c01c (patch)
tree7973a2e45e5cf9ba5492e93eba6a36d6aca4c186
parent468aec90e90cfb027f337188cba07592dd909f61 (diff)
downloadgtk3-tqt-engine-2833af123799bcf16c9960da3ad21c2113f9c01c.tar.gz
gtk3-tqt-engine-2833af123799bcf16c9960da3ad21c2113f9c01c.zip
Fix FTBFS with clang
Signed-off-by: Slávek Banko <[email protected]>
-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))