projects
/
oweals
/
opkg-lede.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove code path which cannot be executed.
[oweals/opkg-lede.git]
/
libopkg
/
opkg_cmd.c
diff --git
a/libopkg/opkg_cmd.c
b/libopkg/opkg_cmd.c
index a3f18f8849110133e76da7a5eda11bb8b0e34cdc..9c1612b6f7b04fd095a2b306cf2e03bbdf86a0ac 100644
(file)
--- 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);
if (ctx->oldpath) {
setenv ("PATH", ctx->oldpath, 1);
free (ctx->oldpath);
- } else {
- unsetenv("PATH");
}
dir = opendir (ctx->statedir);
}
dir = opendir (ctx->statedir);