Ignore:
Timestamp:
Mar 6, 2014, 11:28:16 AM (6 years ago)
Author:
raimue@…
Message:

cregistry: Fix error reported by scan-build

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

File:
1 edited

Legend:

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

    r111250 r117632  
    337337    Tcl_HashEntry* hash;
    338338    Tcl_HashSearch search;
    339     *files = malloc(10 * sizeof(void*));
     339    *files = malloc(file_space * sizeof(reg_file*));
    340340    if (!*files) {
    341341        return -1;
Note: See TracChangeset for help on using the changeset viewer.