From: Aaron Lehmann Date: Mon, 31 Dec 2001 06:00:57 +0000 (-0000) Subject: ash patch: addfname-diff X-Git-Tag: 0_60_3~142 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=95877b675640b7fb341bc9a927dcbb7cdea46b25;p=platform%2Fupstream%2Fbusybox.git ash patch: addfname-diff --- diff --git a/shell/ash.c b/shell/ash.c index 522a11d..bc1b4da 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 * 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) {