aboutsummaryrefslogtreecommitdiff
path: root/util-linux/mdev.c
diff options
context:
space:
mode:
Diffstat (limited to 'util-linux/mdev.c')
-rw-r--r--util-linux/mdev.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/util-linux/mdev.c b/util-linux/mdev.c
index 34cabc934..956de15ae 100644
--- a/util-linux/mdev.c
+++ b/util-linux/mdev.c
@@ -276,8 +276,7 @@ static void make_device(char *path, int delete)
276 putenv(s); 276 putenv(s);
277 if (system(command) == -1) 277 if (system(command) == -1)
278 bb_perror_msg_and_die("can't run '%s'", command); 278 bb_perror_msg_and_die("can't run '%s'", command);
279 s[4] = '\0'; 279 unsetenv("MDEV");
280 unsetenv(s);
281 free(s); 280 free(s);
282 free(command); 281 free(command);
283 } 282 }