summaryrefslogtreecommitdiffstats
path: root/src/modules
diff options
context:
space:
mode:
authorFrançois Andriot <francois.andriot@free.fr>2021-05-11 13:22:27 +0200
committerFrançois Andriot <francois.andriot@free.fr>2021-05-11 13:22:27 +0200
commit322b12e44f49c8b00ad6579854355f011c55f0c8 (patch)
tree47f365781ec752e165a40c9e44d794f6e381516a /src/modules
parent85b257a4b855fd426050caa744a4dc15c90a1e02 (diff)
downloadkvirc-322b12e44f49c8b00ad6579854355f011c55f0c8.tar.gz
kvirc-322b12e44f49c8b00ad6579854355f011c55f0c8.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>
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/rijndael/libkvirijndael.cpp4
1 files changed, 2 insertions, 2 deletions
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);