aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--shell/ash.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/shell/ash.c b/shell/ash.c
index 2c439602a..e47c47850 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -1491,12 +1491,10 @@ sstrdup(const char *p)
return memcpy(stalloc(len), p, len);
}
-static void
+static inline void
grabstackblock(size_t len)
{
- len = SHELL_ALIGN(len);
- g_stacknxt += len;
- g_stacknleft -= len;
+ stalloc(len);
}
static void