Remove code path which cannot be executed.
[oweals/opkg-lede.git] / libopkg / opkg_cmd.c
index a3f18f8849110133e76da7a5eda11bb8b0e34cdc..9c1612b6f7b04fd095a2b306cf2e03bbdf86a0ac 100644 (file)
@@ -338,8 +338,6 @@ static int opkg_finalize_intercepts(opkg_intercept_t ctx)
     if (ctx->oldpath) {
         setenv ("PATH", ctx->oldpath, 1);
         free (ctx->oldpath);
     if (ctx->oldpath) {
         setenv ("PATH", ctx->oldpath, 1);
         free (ctx->oldpath);
-    } else {
-        unsetenv("PATH"); 
     }
 
     dir = opendir (ctx->statedir);
     }
 
     dir = opendir (ctx->statedir);