Changeset 782a3ce in mainline
- Timestamp:
- 2020-05-04T20:41:31Z (5 years ago)
- Parents:
- 14a014f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/clui/tinput.c
r14a014f r782a3ce 704 704 /* Extend array */ 705 705 compl_len = 2 * compl_len; 706 compl = realloc(compl, compl_len * sizeof(char *)); 707 if (compl == NULL) { 706 char **temp = realloc(compl, compl_len * sizeof(char *)); 707 if (temp == NULL) { 708 free(compl); 708 709 printf("Error: Out of memory.\n"); 709 710 break; 710 711 } 712 compl = temp; 711 713 } 712 714
Note:
See TracChangeset
for help on using the changeset viewer.