summaryrefslogtreecommitdiff
path: root/lib_generic/string.c
diff options
context:
space:
mode:
authorAlessandro Rubini <[email protected]>2009-10-08 14:29:14 +0200
committerWolfgang Denk <[email protected]>2009-10-18 23:07:03 +0200
commit9c5586aa19bbedf290d2a663813404d2db87dfa5 (patch)
tree6d2001dcfa36f4746cf530ad05a9d4fe2edc6528 /lib_generic/string.c
parentc9ee39972a7758e883b73c6c0e3c3a14cd5b2f43 (diff)
setenv: do console redirection even if previously unset
If "stdout" is not previously set, doing "setenv stdout lcd" had no effect, since console redirection only worked if the environment variable was already set; the second time you run setenv it worked. Most default environments lack stdin/out/err definitions, so I'm sure I'm not alone with this problem. This patch simply moves a block of code out of a conditional, to do the same work even if the variable was previously unset. Signed-off-by: Alessandro Rubini <[email protected]> Acked-by: Andrea Gallo <[email protected]>
Diffstat (limited to 'lib_generic/string.c')
0 files changed, 0 insertions, 0 deletions