Fix both unused and undeclared local variables in pidofproc.
authorDidier Raboud <odyx@debian.org>
Sun, 11 Mar 2012 13:59:18 +0000 (14:59 +0100)
committerDidier Raboud <odyx@debian.org>
Sun, 11 Mar 2012 13:59:18 +0000 (14:59 +0100)
This fixes:
- one bug introduced by the fix for #327405 in 3.0-6, which stopped using the
  `line` variable;
- one bug introduced in 3.2-20, which started to use the `base` variable
  without declaring it in local.

Closes: #663351
Reported-by: Liu Yubao <yubao.liu@gmail.com>
Signed-off-by: Didier Raboud <odyx@debian.org>
init-functions

index c6460737804bc367d205f4af9aae9d528a3b818f..d5b697194406680e300dffa81f50675aebb4688b 100644 (file)
@@ -62,7 +62,7 @@ start_daemon () {
 }
 
 pidofproc () {
-    local pidfile line status specified pid
+    local pidfile base status specified pid
     pidfile=
     specified=