sh: Have only one copy of _PATH_STDPATH in the binary.

This commit is contained in:
jilles 2010-05-08 14:00:01 +00:00
parent 4842c29896
commit 6a8de408d7

View File

@ -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;