From 322b12e44f49c8b00ad6579854355f011c55f0c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Andriot?= Date: Tue, 11 May 2021 13:22:27 +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 ('int*' and 'int') Signed-off-by: François Andriot --- src/modules/rijndael/libkvirijndael.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/modules/rijndael/libkvirijndael.cpp b/src/modules/rijndael/libkvirijndael.cpp index b39edcb7..80391624 100644 --- a/src/modules/rijndael/libkvirijndael.cpp +++ b/src/modules/rijndael/libkvirijndael.cpp @@ -277,7 +277,7 @@ setLastError(__tr("The message is not a hexadecimal string: this is not my stuff")); return false; } else { - if(len > 0) + if(*len > 0) { *outBuffer = (char *)kvi_malloc(*len); kvi_memmove(*outBuffer,tmpBuf,*len); @@ -303,7 +303,7 @@ setLastError(__tr("The message is not a base64 string: this is not my stuff")); return false; } else { - if(len > 0) + if(*len > 0) { *outBuffer = (char *)kvi_malloc(*len); kvi_memmove(*outBuffer,tmpBuf,*len); -- cgit v1.2.1