]> www.tinc-vpn.org Git - tinc/blobdiff - src/tincctl.c
Reformat the code using astyle.
[tinc] / src / tincctl.c
index dccd49d88fd08a29449d03d579217f38190f44fa..a4bb5912ba2880720fe0e73935781963da1576b8 100644 (file)
@@ -2440,10 +2440,14 @@ static int cmd_edit(int argc, char *argv[]) {
        char *command;
 #ifndef HAVE_MINGW
        const char *editor = getenv("VISUAL");
-       if (!editor)
+
+       if(!editor) {
                editor = getenv("EDITOR");
-       if (!editor)
+       }
+
+       if(!editor) {
                editor = "vi";
+       }
 
        xasprintf(&command, "\"%s\" \"%s\"", editor, filename);
 #else