Changeset dc5c303 in mainline for uspace/lib/sif/src/sif.c
- Timestamp:
- 2023-12-28T13:59:23Z (2 years ago)
- Children:
- 6b66de6b
- Parents:
- 42c2e65 (diff), f87ff8e (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - git-author:
- boba-buba <120932204+boba-buba@…> (2023-12-28 13:59:23)
- git-committer:
- GitHub <noreply@…> (2023-12-28 13:59:23)
- File:
-
- 1 edited
-
uspace/lib/sif/src/sif.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/sif/src/sif.c
r42c2e65 rdc5c303 1 1 /* 2 * Copyright (c) 20 18Jiri Svoboda2 * Copyright (c) 2023 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 702 702 { 703 703 char *str; 704 char *nstr; 704 705 size_t str_size; 705 706 size_t sidx; … … 739 740 if (sidx >= str_size) { 740 741 str_size *= 2; 741 str = realloc(str, str_size + 1);742 if ( str == NULL) {742 nstr = realloc(str, str_size + 1); 743 if (nstr == NULL) { 743 744 rc = ENOMEM; 744 745 goto error; 745 746 } 747 748 str = nstr; 746 749 } 747 750
Note:
See TracChangeset
for help on using the changeset viewer.
