Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/sif/src/sif.c

    r153dd3b ree8d4d6  
    11/*
    2  * Copyright (c) 2023 Jiri Svoboda
     2 * Copyright (c) 2018 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    702702{
    703703        char *str;
    704         char *nstr;
    705704        size_t str_size;
    706705        size_t sidx;
     
    740739                if (sidx >= str_size) {
    741740                        str_size *= 2;
    742                         nstr = realloc(str, str_size + 1);
    743                         if (nstr == NULL) {
     741                        str = realloc(str, str_size + 1);
     742                        if (str == NULL) {
    744743                                rc = ENOMEM;
    745744                                goto error;
    746745                        }
    747 
    748                         str = nstr;
    749746                }
    750747
Note: See TracChangeset for help on using the changeset viewer.