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 322b12e44f)
r14.0.x
François Andriot 4 years ago committed by Michele Calgaro
parent 9b8b8de4c5
commit 08b014d366
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -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);

Loading…
Cancel
Save