- Warning fix

git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2143 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
aet 2005-02-06 10:06:21 +00:00
parent 99fc1f6d1d
commit 176323ac03
2 changed files with 3 additions and 3 deletions

View File

@ -1330,7 +1330,7 @@ show_dobj(CK_SESSION_HANDLE sess, CK_OBJECT_HANDLE obj)
{
int *app_oid;
char *label;
CK_ULONG size;
CK_ULONG size = 0;
printf("Data object %u\n", (unsigned int) obj);
printf(" label: ");
@ -2608,7 +2608,7 @@ test_kpgen_certwrite(CK_SLOT_ID slot, CK_SESSION_HANDLE session)
CK_BYTE *data, sig[512];
CK_ULONG data_len, sig_len;
CK_BYTE *id = (CK_BYTE *) "abcdefghijklmnopqrst";
CK_ULONG id_len = 20, mod_len;
CK_ULONG id_len = 20, mod_len = 0;
CK_BYTE *label = (CK_BYTE *) "Just a label";
CK_ULONG label_len = 12;
CK_ATTRIBUTE attribs[3] = {

View File

@ -855,7 +855,7 @@ static int
do_store_certificate(struct sc_profile *profile)
{
struct sc_pkcs15init_certargs args;
X509 *cert;
X509 *cert = NULL;
int r;
memset(&args, 0, sizeof(args));