Changeset 117634 for trunk/base


Ignore:
Timestamp:
Mar 6, 2014, 11:33:25 AM (10 years ago)
Author:
raimue@…
Message:

cregistry: Fix error reported by scan-build

Result of 'malloc' is converted to a pointer of type 'reg_entry *', which is incompatible with sizeof operand type 'void *'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/src/cregistry/entry.c

    r117407 r117634  
    12691269    Tcl_HashEntry* hash;
    12701270    Tcl_HashSearch search;
    1271     *entries = malloc(10*sizeof(void*));
     1271    *entries = malloc(entry_space * sizeof(reg_entry*));
    12721272    if (!*entries) {
    12731273        return -1;
Note: See TracChangeset for help on using the changeset viewer.