ipsecctrl: fix compile error.
authorArne Fitzenreiter <arne_f@ipfire.org>
Fri, 25 Jun 2010 05:36:39 +0000 (07:36 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Fri, 25 Jun 2010 05:36:39 +0000 (07:36 +0200)
src/misc-progs/ipsecctrl.c

index 1dd05ea..2e8ca53 100644 (file)
@@ -142,6 +142,8 @@ int decode_line (char *s,
 */
 void turn_connection_on (char *name, char *type) {
         char command[STRING_SIZE];
+       FILE *file = NULL;
+
        if (file = fopen("/var/run/vpn-watch.pid", "r")) {
            safe_system("kill -9 $(cat /var/run/vpn-watch.pid)");
            safe_system("unlink /var/run/vpn-watch.pid");