Changeset 1c6c3e1d in mainline for uspace/lib/sif/src/sif.c


Ignore:
Timestamp:
2023-10-22T17:55:33Z (17 months ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
ticket/834-toolchain-update
Children:
350ec74
Parents:
315d487 (diff), 133461c (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.
Message:

Merge branch 'master' into ticket

File:
1 edited

Legend:

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

    r315d487 r1c6c3e1d  
    11/*
    2  * Copyright (c) 2018 Jiri Svoboda
     2 * Copyright (c) 2023 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    702702{
    703703        char *str;
     704        char *nstr;
    704705        size_t str_size;
    705706        size_t sidx;
     
    739740                if (sidx >= str_size) {
    740741                        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) {
    743744                                rc = ENOMEM;
    744745                                goto error;
    745746                        }
     747
     748                        str = nstr;
    746749                }
    747750
Note: See TracChangeset for help on using the changeset viewer.