blob: 60bd6082c8b9fc1a6ebb02e03d50d8e05cee822b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
From 1136b8150f58e909eaa094d991dcefa81b8f6a60 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fran=C3=A7ois=20Andriot?= <francois.andriot@free.fr>
Date: Tue, 11 May 2021 19:45:01 +0200
Subject: Fix ftbfs on Fedora 34
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
error: ordered comparison of pointer with integer zero ('char*' and 'int')
Signed-off-by: François Andriot <francois.andriot@free.fr>
---
tdesudo/tdesudo.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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";
--
cgit v1.2.1
|