Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 94868e1 in mainline


Ignore:
Timestamp:
2017-10-02T22:54:51Z (4 years ago)
Author:
jzr <zarevucky.jiri@…>
Branches:
lfn, master
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.