diff options
author | François Andriot <francois.andriot@free.fr> | 2021-05-11 19:45:01 +0200 |
---|---|---|
committer | François Andriot <francois.andriot@free.fr> | 2021-05-11 19:45:01 +0200 |
commit | 1136b8150f58e909eaa094d991dcefa81b8f6a60 (patch) | |
tree | bd2c1f3c1d20c540d5964d1cb76ccac7a7895a3f | |
parent | cbffba176333fc5a38e7c431e0132c1301a35e52 (diff) | |
download | tdesudo-1136b8150f58e909eaa094d991dcefa81b8f6a60.tar.gz tdesudo-1136b8150f58e909eaa094d991dcefa81b8f6a60.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>
-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"; |