Changes in uspace/lib/posix/stdio/scanf.c [a12f7f1:12fb8498] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/stdio/scanf.c
ra12f7f1 r12fb8498 303 303 self->fetched = 0; 304 304 self->cursor = NULL; 305 if (self->window) { 306 free(self->window); 307 self->window = NULL; 308 } 305 free(self->window); 306 self->window = NULL; 309 307 self->window_size = 0; 310 308 self->state = _PROV_CONSTRUCTED; … … 655 653 /* Update the cursor so it can be returned to the provider. */ 656 654 cur_borrowed += cur_updated - cur_limited; 657 if (width != -1 && cur_limited != NULL) {655 if (width != -1) { 658 656 /* Deallocate duplicated part of the cursor view. */ 659 657 free(cur_limited); … … 835 833 /* Update the cursor so it can be returned to the provider. */ 836 834 cur_borrowed += cur_updated - cur_limited; 837 if (width != -1 && cur_limited != NULL) {835 if (width != -1) { 838 836 /* Deallocate duplicated part of the cursor view. */ 839 837 free(cur_limited);
Note:
See TracChangeset
for help on using the changeset viewer.