Ignore:
Timestamp:
Sep 10, 2020, 1:38:27 PM (5 years ago)
Author:
bird
Message:

kash: Must make sure nfile::expfname is initialized and set to NULL after use, or we risk copying random stuff. Fixed bug in copynodelist.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kash/parser.c

    r3439 r3440  
    12041204
    12051205        np = (union node *)stalloc(psh, sizeof (struct nfile));
     1206        np->nfile.expfname = NULL;
    12061207        if (c == '>') {
    12071208                np->nfile.fd = 1;
     
    17931794                        ppnext = &dst->next;
    17941795                        dst->n = copyparsetree(psh, src->n);
     1796                        src = src->next;
    17951797                }
    17961798        }
Note: See TracChangeset for help on using the changeset viewer.