Changeset 842d63ba in rtems


Ignore:
Timestamp:
Aug 23, 2013, 8:01:57 AM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
215ccce
Parents:
2bd440e
git-author:
Sebastian Huber <sebastian.huber@…> (08/23/13 08:01:57)
git-committer:
Sebastian Huber <sebastian.huber@…> (08/26/13 07:53:22)
Message:

libblock: Avoid uninitialized variable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libblock/src/bdbuf.c

    r2bd440e r842d63ba  
    13491349  worker_size = rtems_bdbuf_swapout_worker_size ();
    13501350  worker_current = calloc (1, bdbuf_config.swapout_workers * worker_size);
    1351   if (!worker_current)
    1352     sc = RTEMS_NO_MEMORY;
     1351  sc = worker_current != NULL ? RTEMS_SUCCESSFUL : RTEMS_NO_MEMORY;
    13531352
    13541353  bdbuf_cache.swapout_workers = (rtems_bdbuf_swapout_worker *) worker_current;
Note: See TracChangeset for help on using the changeset viewer.