Changeset f019125a in mainline
- Timestamp:
- 2020-03-25T11:44:04Z (5 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 823461d3
- Parents:
- 4453a12a
- git-author:
- Manuele Conti <manuele.conti@…> (2020-03-24 22:12:22)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2020-03-25 11:44:04)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/root/root/root.c
r4453a12a rf019125a 144 144 145 145 /* Null-terminate string. */ 146 platform= realloc(platform, platform_size + 1);147 if ( platform== NULL) {146 char *tmp = realloc(platform, platform_size + 1); 147 if (tmp == NULL) { 148 148 ddf_msg(LVL_ERROR, "Memory allocation failed."); 149 return ENOMEM; 150 } 151 149 free(platform); 150 return ENOMEM; 151 } 152 platform = tmp; 152 153 platform[platform_size] = '\0'; 153 154
Note:
See TracChangeset
for help on using the changeset viewer.