Changeset 4f3aa76 in mainline for kernel/generic/src/sysinfo/sysinfo.c
- Timestamp:
- 2018-11-09T22:03:24Z (5 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ba9a150
- Parents:
- b389f95
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-11-08 01:26:04)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-11-09 22:03:24)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/sysinfo/sysinfo.c
rb389f95 r4f3aa76 685 685 return ret; 686 686 687 char *path = (char *) nfmalloc(size + 1); 688 assert(path); 687 // TODO: Change this so that allocation is not needed. 688 char *path = malloc(size + 1); 689 if (!path) 690 return ret; 689 691 690 692 if ((copy_from_uspace(path, ptr, size + 1) == 0) && … … 794 796 return ret; 795 797 796 char *path = (char *) nfmalloc(size + 1); 797 assert(path); 798 // TODO: Change this so that allocation is not needed. 799 char *path = malloc(size + 1); 800 if (!path) 801 return ret; 798 802 799 803 if ((copy_from_uspace(path, ptr, size + 1) == 0) &&
Note:
See TracChangeset
for help on using the changeset viewer.