diff options
author | kraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-04-04 17:50:04 +0000 |
---|---|---|
committer | kraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-04-04 17:50:04 +0000 |
commit | 42a88f0ced9e9a5ed4ad4020ee0b51db7b0c376d (patch) | |
tree | 8d5a7542b1b51bf58de7383f9748971d2c2bcb06 /shell | |
parent | a46ba73cb03b4378a26cd3dc3f29a81456b5ec59 (diff) | |
download | busybox-w32-42a88f0ced9e9a5ed4ad4020ee0b51db7b0c376d.tar.gz busybox-w32-42a88f0ced9e9a5ed4ad4020ee0b51db7b0c376d.tar.bz2 busybox-w32-42a88f0ced9e9a5ed4ad4020ee0b51db7b0c376d.zip |
Avoid segfault when export is invoked with no arguments. Thanks to
Gennady Feldman.
git-svn-id: svn://busybox.net/trunk/busybox@2241 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'shell')
-rw-r--r-- | shell/lash.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/shell/lash.c b/shell/lash.c index 28015cbb3..89325b63d 100644 --- a/shell/lash.c +++ b/shell/lash.c | |||
@@ -426,6 +426,7 @@ static int builtin_export(struct child_prog *child) | |||
426 | for (e = environ; *e; e++) { | 426 | for (e = environ; *e; e++) { |
427 | printf( "%s\n", *e); | 427 | printf( "%s\n", *e); |
428 | } | 428 | } |
429 | return 0; | ||
429 | } | 430 | } |
430 | res = putenv(v); | 431 | res = putenv(v); |
431 | if (res) | 432 | if (res) |