[Pcsclite-cvs-commit] r433 - /trunk/muscleTool/muscleTool.c
rousseau at users.alioth.debian.org
rousseau at users.alioth.debian.org
Sat May 31 16:04:37 UTC 2008
Author: rousseau
Date: Sat May 31 16:04:36 2008
New Revision: 433
URL: http://svn.debian.org/wsvn/muscleapps/?sc=1&rev=433
Log:
use the value returned by realloc()
muscleTool.c:2851: warning: ignoring return value of ‘realloc’, declared
with attribute warn_unused_result
Modified:
trunk/muscleTool/muscleTool.c
Modified: trunk/muscleTool/muscleTool.c
URL: http://svn.debian.org/wsvn/muscleapps/trunk/muscleTool/muscleTool.c?rev=433&op=diff
==============================================================================
--- trunk/muscleTool/muscleTool.c (original)
+++ trunk/muscleTool/muscleTool.c Sat May 31 16:04:36 2008
@@ -2848,7 +2848,7 @@
if (rv == 0)
goto abort;
if ((strlen(hexString)/2 + 1) > outDataSize) {
- realloc(outCryptData, sizeof(MSCUChar8)*(strlen(hexString)/2 + 1));
+ outCryptData = realloc(outCryptData, sizeof(MSCUChar8)*(strlen(hexString)/2 + 1));
}
outDataSize = hexToBin((MSCUChar8 *)hexString, outCryptData);
}
@@ -2897,7 +2897,7 @@
if (rv == 0)
goto abort;
if ((strlen(hexString)/2 + 1) > outDataSize) {
- realloc(outCryptData, sizeof(MSCUChar8)*(strlen(hexString)/2 + 1));
+ outCryptData = realloc(outCryptData, sizeof(MSCUChar8)*(strlen(hexString)/2 + 1));
}
outDataSize = hexToBin((MSCUChar8 *)hexString, outCryptData);
}
@@ -3133,7 +3133,7 @@
switch(choice) {
case 1: ciphMode = MSC_MODE_SIGNATURE_ECDSA_SHA;
if (6 + (2 * ((keySize / 8) + 1)) > outDataSize) {
- realloc(outCryptData, sizeof(MSCUChar8)* (6 + (2 * ((keySize / 8) + 1))));
+ outCryptData = realloc(outCryptData, sizeof(MSCUChar8)* (6 + (2 * ((keySize / 8) + 1))));
}
break;
default:
More information about the Pcsclite-cvs-commit
mailing list