Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/posix/stdio/scanf.c

    ra12f7f1 r12fb8498  
    303303        self->fetched = 0;
    304304        self->cursor = NULL;
    305         if (self->window) {
    306                 free(self->window);
    307                 self->window = NULL;
    308         }
     305        free(self->window);
     306        self->window = NULL;
    309307        self->window_size = 0;
    310308        self->state = _PROV_CONSTRUCTED;
     
    655653                                /* Update the cursor so it can be returned to the provider. */
    656654                                cur_borrowed += cur_updated - cur_limited;
    657                                 if (width != -1 && cur_limited != NULL) {
     655                                if (width != -1) {
    658656                                        /* Deallocate duplicated part of the cursor view. */
    659657                                        free(cur_limited);
     
    835833                                /* Update the cursor so it can be returned to the provider. */
    836834                                cur_borrowed += cur_updated - cur_limited;
    837                                 if (width != -1 && cur_limited != NULL) {
     835                                if (width != -1) {
    838836                                        /* Deallocate duplicated part of the cursor view. */
    839837                                        free(cur_limited);
Note: See TracChangeset for help on using the changeset viewer.