diff options
author | François Andriot <francois.andriot@free.fr> | 2021-05-11 13:22:27 +0200 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2021-05-11 22:37:48 +0900 |
commit | 08b014d366cd0369ae0f79fd6737fab5accff128 (patch) | |
tree | 5fbc178fe3c95448958ab1afd532a2a832da17d2 | |
parent | 9b8b8de4c5a374419ce19a49f4c7f5d4b4e8319f (diff) | |
download | kvirc-08b014d366cd0369ae0f79fd6737fab5accff128.tar.gz kvirc-08b014d366cd0369ae0f79fd6737fab5accff128.zip |
Fix ftbfs on Fedora 34
error: ordered comparison of pointer with integer zero ('int*' and 'int')
Signed-off-by: François Andriot <francois.andriot@free.fr>
(cherry picked from commit 322b12e44f49c8b00ad6579854355f011c55f0c8)
-rw-r--r-- | src/modules/rijndael/libkvirijndael.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/rijndael/libkvirijndael.cpp b/src/modules/rijndael/libkvirijndael.cpp index e9c70516..3f181585 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); |