Changeset 94868e1 in mainline


Ignore:
Timestamp:
2017-10-02T22:54:51Z (7 years ago)
Author:
jzr <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
68f4671
Parents:
943aaf1b
Message:

Fix return of uninitialized variable.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/sysinfo/sysinfo.c

    r943aaf1b r94868e1  
    717717                        /* Allocate buffer for subkeys */
    718718                        char *names = (char *) malloc(size, FRAME_ATOMIC);
    719                         if (names == NULL)
     719                        if (names == NULL) {
     720                                ret.tag = SYSINFO_VAL_UNDEFINED;
    720721                                return ret;
     722                        }
    721723                       
    722724                        size_t pos = 0;
Note: See TracChangeset for help on using the changeset viewer.