From 08b014d366cd0369ae0f79fd6737fab5accff128 Mon Sep 17 00:00:00 2001 From: François Andriot 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 (cherry picked from commit 322b12e44f49c8b00ad6579854355f011c55f0c8) --- 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 e9c7051..3f18158 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.3