diff options
Diffstat (limited to 'e2fsprogs/mke2fs.c')
-rw-r--r-- | e2fsprogs/mke2fs.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/e2fsprogs/mke2fs.c b/e2fsprogs/mke2fs.c index 017fb53..6cd5bd4 100644 --- a/e2fsprogs/mke2fs.c +++ b/e2fsprogs/mke2fs.c @@ -794,10 +794,7 @@ static int PRS(int argc, char *argv[]) /* Update our PATH to include /sbin */ if (oldpath) { - char *newpath; - - bb_xasprintf(&newpath, "%s:%s", PATH_SET, oldpath); - putenv(newpath); + putenv (bb_xasprintf("%s:%s", PATH_SET, oldpath)); } else putenv (PATH_SET); |