Changeset 3147 for releases

Show
Ignore:
Timestamp:
04/01/07 17:05:21 (22 months ago)
Author:
nils
Message:

bugfix: don't use the size of a void pointer, thanks to Carl Przybylek <crprzyby@…>

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • releases/opensc-0.11.2/src/pkcs11/pkcs11-global.c

    r3086 r3147  
    8080        CRITICAL_SECTION *m; 
    8181 
    82         m = (CRITICAL_SECTION *) malloc(sizeof(*mutex)); 
     82        m = (CRITICAL_SECTION *) malloc(sizeof(*m)); 
    8383        if (m == NULL) 
    8484                return CKR_GENERAL_ERROR;