ovs-lib: Move DAEMON_CWD initialization to top of file.
authorBen Pfaff <blp@nicira.com>
Thu, 6 Sep 2012 23:20:17 +0000 (16:20 -0700)
committerBen Pfaff <blp@nicira.com>
Fri, 21 Sep 2012 16:50:02 +0000 (09:50 -0700)
All the other variables are initialized at the top and I don't see a reason
that this variable is special.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Ethan Jackson <ethan@nicira.com>
utilities/ovs-lib.in

index 3c63ddd98d6b196d729e7f31eb714f40051b810f..01f4dedd361c0fddb455bdc771aee3a5014fd40d 100644 (file)
@@ -39,6 +39,8 @@ fi
 
 VERSION='@VERSION@'
 
+DAEMON_CWD=/
+
 LC_ALL=C; export LC_ALL
 
 ## ------------- ##
@@ -159,7 +161,6 @@ start_daemon () {
     fi
 }
 
-DAEMON_CWD=/
 stop_daemon () {
     if test -e "$rundir/$1.pid"; then
         if pid=`cat "$rundir/$1.pid"`; then