Changeset 76b9c31 in rtems for cpukit/libpci


Ignore:
Timestamp:
Aug 25, 2017, 9:01:15 AM (21 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
f93f770
Parents:
a97d77c
Message:

libpci: Use calloc()

Update #2133.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libpci/pci_dev_create.c

    ra97d77c r76b9c31  
    2727                size = sizeof(struct pci_dev);
    2828
    29         ptr = malloc(size);
     29        ptr = calloc(1, size);
    3030        if (!ptr)
    3131                rtems_fatal_error_occurred(RTEMS_NO_MEMORY);
    32         memset(ptr, 0, size);
    3332        return ptr;
    3433}
Note: See TracChangeset for help on using the changeset viewer.