X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Finvitation.c;h=411af2bf4b9b6d51e7072600cb866ae67972db97;hb=469a261b7547f07ab26f46eb3774beca17c75cd2;hp=500f2434b77e150a0d2f566e2fa89e6693d13380;hpb=1c475ecb575367a6b3f9328b0f643ad636155341;p=tinc diff --git a/src/invitation.c b/src/invitation.c index 500f2434..411af2bf 100644 --- a/src/invitation.c +++ b/src/invitation.c @@ -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