mirror of
https://git.freebsd.org/ports.git
synced 2025-06-28 16:10:33 -04:00
src/modules/rijndael/libkvirijndael.cpp:331:11: error: ordered comparison between pointer and zero ('int *' and 'int') if(len > 0) ~~~ ^ ~ src/modules/rijndael/libkvirijndael.cpp:357:11: error: ordered comparison between pointer and zero ('int *' and 'int') if(len > 0) ~~~ ^ ~ Reported by: antoine (via exp-run)
20 lines
672 B
C++
20 lines
672 B
C++
--- src/modules/rijndael/libkvirijndael.cpp.orig 2011-07-23 15:15:56 UTC
|
|
+++ src/modules/rijndael/libkvirijndael.cpp
|
|
@@ -328,7 +328,7 @@
|
|
setLastError(__tr2qs("The message is not a hexadecimal string: this is not my stuff"));
|
|
return false;
|
|
} else {
|
|
- if(len > 0)
|
|
+ if(*len > 0)
|
|
{
|
|
*outBuffer = (char *)KviMemory::allocate(*len);
|
|
KviMemory::move(*outBuffer,tmpBuf,*len);
|
|
@@ -354,7 +354,7 @@
|
|
setLastError(__tr2qs("The message is not a base64 string: this is not my stuff"));
|
|
return false;
|
|
} else {
|
|
- if(len > 0)
|
|
+ if(*len > 0)
|
|
{
|
|
*outBuffer = (char *)KviMemory::allocate(*len);
|
|
KviMemory::move(*outBuffer,tmpBuf,*len);
|