From 6a8de408d7f7bc9dc9765e2fc1ac2949f02ac7b1 Mon Sep 17 00:00:00 2001 From: jilles Date: Sat, 8 May 2010 14:00:01 +0000 Subject: [PATCH] sh: Have only one copy of _PATH_STDPATH in the binary. --- bin/sh/eval.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/bin/sh/eval.c b/bin/sh/eval.c index c4495d04275a..a47d045545a3 100644 --- a/bin/sh/eval.c +++ b/bin/sh/eval.c @@ -1089,8 +1089,7 @@ breakcmd(int argc, char **argv) int commandcmd(int argc, char **argv) { - static char stdpath[] = _PATH_STDPATH; - char *path; + const char *path; int ch; int cmd = -1; @@ -1101,7 +1100,7 @@ commandcmd(int argc, char **argv) while ((ch = getopt(argc, argv, "pvV")) != -1) { switch (ch) { case 'p': - path = stdpath; + path = _PATH_STDPATH; break; case 'v': cmd = TYPECMD_SMALLV;