summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrançois Andriot <francois.andriot@free.fr>2021-05-11 19:45:01 +0200
committerMichele Calgaro <michele.calgaro@yahoo.it>2021-05-12 09:43:29 +0900
commit67aebfa5c6d86e2e2e74fd0736bf1bfb4d471c61 (patch)
tree99d1a11a9d04c9c6a86df6e6e73f59c756c48146
parent3263b96fdda83e523d078ecaee9fc052b0f1bd85 (diff)
downloadtdesudo-67aebfa5.tar.gz
tdesudo-67aebfa5.zip
Fix ftbfs on Fedora 34
error: ordered comparison of pointer with integer zero ('char*' and 'int') Signed-off-by: François Andriot <francois.andriot@free.fr> (cherry picked from commit 1136b8150f58e909eaa094d991dcefa81b8f6a60)
-rw-r--r--tdesudo/tdesudo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tdesudo/tdesudo.cpp b/tdesudo/tdesudo.cpp
index c255d0f..83158ab 100644
--- a/tdesudo/tdesudo.cpp
+++ b/tdesudo/tdesudo.cpp
@@ -205,7 +205,7 @@ TdeSudo::TdeSudo(TQWidget *parent, const char *name,const TQString& icon, const
chmod(m_tmpname.ascii(),0644);
QCStringList output;
- while (fgets(buf, 1024, f) > 0)
+ while (fgets(buf, 1024, f) != NULL)
output += buf;
if (pclose(f) < 0) {
kdError() << k_lineinfo << "Could not run xauth.\n";