diff options
author | Aaron Lehmann <aaronl@vitelius.com> | 2001-12-31 09:00:57 +0300 |
---|---|---|
committer | Aaron Lehmann <aaronl@vitelius.com> | 2001-12-31 09:00:57 +0300 |
commit | 95877b675640b7fb341bc9a927dcbb7cdea46b25 (patch) | |
tree | 598383c5308e2a13c092639081afbd8247ef4361 /shell | |
parent | 79a466f1285509853b2fa37351219d58506c58c4 (diff) |
ash patch: addfname-diff
Diffstat (limited to 'shell')
-rw-r--r-- | shell/ash.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/shell/ash.c b/shell/ash.c index 522a11d20..bc1b4da81 100644 --- a/shell/ash.c +++ b/shell/ash.c @@ -5141,12 +5141,10 @@ ifsfree(void) static void addfname(const char *name) { - char *p; struct strlist *sp; - p = sstrdup(name); sp = (struct strlist *)stalloc(sizeof *sp); - sp->text = p; + sp->text = sstrdup(name); *exparg.lastp = sp; exparg.lastp = &sp->next; } @@ -12481,7 +12479,7 @@ findvar(struct var **vpp, const char *name) /* * Copyright (c) 1999 Herbert Xu <herbert@debian.org> * This file contains code for the times builtin. - * $Id: ash.c,v 1.39 2001/12/21 11:22:26 andersen Exp $ + * $Id: ash.c,v 1.40 2001/12/31 06:00:57 aaronl Exp $ */ static int timescmd (int argc, char **argv) { |