From 42a88f0ced9e9a5ed4ad4020ee0b51db7b0c376d Mon Sep 17 00:00:00 2001 From: kraai Date: Wed, 4 Apr 2001 17:50:04 +0000 Subject: 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 --- shell/lash.c | 1 + 1 file changed, 1 insertion(+) (limited to 'shell') 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) for (e = environ; *e; e++) { printf( "%s\n", *e); } + return 0; } res = putenv(v); if (res) -- cgit v1.2.3-55-g6feb