Changeset 117633


Ignore:
Timestamp:
Mar 6, 2014, 11:29:59 AM (7 years ago)
Author:
raimue@…
Message:

registry2.0: Fix error reported by scan-build

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/src/registry2.0/entry.c

    r88441 r117633  
    154154        if (list_handle) {
    155155            entry_list* list = *list_handle;
    156             *list_handle = malloc(sizeof(entry_list*));
     156            *list_handle = malloc(sizeof(entry_list));
    157157            if (*list_handle) {
    158158                (*list_handle)->entry = entry;
Note: See TracChangeset for help on using the changeset viewer.