summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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))