summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-07-13 20:39:23 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-07-13 20:39:23 +0000
commit3177ba08522fd49292f37deecc59db0f75b046fd (patch)
tree2a1ce5c29185a8d0cb27534a2120752ee3f1cfdc /shell
parentad6d6ffcdc9a5aadf604d9411cbee96a974b24c9 (diff)
downloadbusybox-w32-3177ba08522fd49292f37deecc59db0f75b046fd.tar.gz
busybox-w32-3177ba08522fd49292f37deecc59db0f75b046fd.tar.bz2
busybox-w32-3177ba08522fd49292f37deecc59db0f75b046fd.zip
ash: small code shrink
Diffstat (limited to 'shell')
-rw-r--r--shell/ash.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/shell/ash.c b/shell/ash.c
index 08bdfc3b3..7a63fcec7 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -1656,12 +1656,12 @@ struct shparam {
1656static void 1656static void
1657freeparam(volatile struct shparam *param) 1657freeparam(volatile struct shparam *param)
1658{ 1658{
1659 char **ap;
1660
1661 if (param->malloced) { 1659 if (param->malloced) {
1662 for (ap = param->p; *ap; ap++) 1660 char **ap, **ap1;
1663 free(*ap); 1661 ap = ap1 = param->p;
1664 free(param->p); 1662 while (*ap)
1663 free(*ap++);
1664 free(ap1);
1665 } 1665 }
1666} 1666}
1667 1667