From 7cced6e57404cc1043a1b0dd0491aef2f792497e Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Thu, 12 Apr 2007 17:08:53 +0000 Subject: fix realloc-of-non-malloced pointer, and reduce size while at it --- shell/hush.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'shell/hush.c') diff --git a/shell/hush.c b/shell/hush.c index 9af7f5105..eae0e10f5 100644 --- a/shell/hush.c +++ b/shell/hush.c @@ -423,7 +423,7 @@ static const struct built_in_command bltins[] = { static const char *set_cwd(void) { if (cwd == bb_msg_unknown) - cwd = NULL; /* xrealloc_getcwd_or_warn(arg) called free(arg) */ + cwd = NULL; /* xrealloc_getcwd_or_warn(arg) calls free(arg)! */ cwd = xrealloc_getcwd_or_warn((char *)cwd); if (!cwd) cwd = bb_msg_unknown; -- cgit v1.2.3