aboutsummaryrefslogtreecommitdiff
path: root/poweroff.c
diff options
context:
space:
mode:
Diffstat (limited to 'poweroff.c')
-rw-r--r--poweroff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/poweroff.c b/poweroff.c
index eba51342c..db20a4572 100644
--- a/poweroff.c
+++ b/poweroff.c
@@ -30,7 +30,7 @@ extern int poweroff_main(int argc, char **argv)
/* don't assume init's pid == 1 */
pid_t *pid = find_pid_by_name("init");
if (!pid || *pid<=0) {
- pid_t *pid = find_pid_by_name("linuxrc");
+ pid = find_pid_by_name("linuxrc");
if (!pid || *pid<=0)
error_msg_and_die("no process killed");
}