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>
pull/3/head
François Andriot 3 years ago
parent 85b257a4b8
commit 322b12e44f

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