]> tinc-vpn.org Git - tinc/blobdiff - src/invitation.c
Reformat the code using astyle.
[tinc] / src / invitation.c
index 500f2434b77e150a0d2f566e2fa89e6693d13380..411af2bf4b9b6d51e7072600cb866ae67972db97 100644 (file)
@@ -1013,10 +1013,14 @@ ask_netname:
                                        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