diff options
author | François Andriot <francois.andriot@free.fr> | 2021-05-11 19:45:01 +0200 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2021-05-12 09:43:29 +0900 |
commit | 67aebfa5c6d86e2e2e74fd0736bf1bfb4d471c61 (patch) | |
tree | 99d1a11a9d04c9c6a86df6e6e73f59c756c48146 | |
parent | 3263b96fdda83e523d078ecaee9fc052b0f1bd85 (diff) | |
download | tdesudo-67aebfa5c6d86e2e2e74fd0736bf1bfb4d471c61.tar.gz tdesudo-67aebfa5c6d86e2e2e74fd0736bf1bfb4d471c61.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.cpp | 2 |
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"; |