summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libopkg/opkg_cmd.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/libopkg/opkg_cmd.c b/libopkg/opkg_cmd.c
index a3f18f8..9c1612b 100644
--- a/libopkg/opkg_cmd.c
+++ b/libopkg/opkg_cmd.c
@@ -338,8 +338,6 @@ static int opkg_finalize_intercepts(opkg_intercept_t ctx)
if (ctx->oldpath) {
setenv ("PATH", ctx->oldpath, 1);
free (ctx->oldpath);
- } else {
- unsetenv("PATH");
}
dir = opendir (ctx->statedir);