X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=init.c;h=f86e4650fa33a0a92b5d4a905648f82583accac4;hp=5ad2e221ea587e120945676f7331c13134d3240d;hb=9394fad402116d8b6124a57a8bab1eacd439e5f7;hpb=10b7d54ecaa5c54622bf1239b57fa2e3359db0e1 diff --git a/init.c b/init.c index 5ad2e22..f86e465 100644 --- a/init.c +++ b/init.c @@ -29,7 +29,7 @@ #include "mbyte.h" #include "charset.h" #include "thread.h" -#include "mutt_crypt.h" +#include #include "mutt_idna.h" #if defined(USE_SSL) || defined(USE_GNUTLS) @@ -2640,15 +2640,12 @@ void mutt_init (int skip_sys_rc, LIST * commands) else Hostname = m_strdup(utsname.nodename); -#ifndef DOMAIN -#define DOMAIN buffer if (!p && getdnsdomainname (buffer, sizeof(buffer)) == -1) Fqdn = m_strdup("@"); else -#endif /* DOMAIN */ - if (*DOMAIN != '@') { - Fqdn = p_new(char, m_strlen(DOMAIN) + m_strlen(Hostname) + 2); - sprintf (Fqdn, "%s.%s", NONULL (Hostname), DOMAIN); /* __SPRINTF_CHECKED__ */ + if (*buffer != '@') { + Fqdn = p_new(char, m_strlen(buffer) + m_strlen(Hostname) + 2); + sprintf (Fqdn, "%s.%s", NONULL(Hostname), buffer); /* __SPRINTF_CHECKED__ */ } else Fqdn = m_strdup(NONULL (Hostname)); @@ -2705,7 +2702,6 @@ void mutt_init (int skip_sys_rc, LIST * commands) p = "vi"; } Editor = m_strdup(p); - Visual = m_strdup(p); if ((p = getenv ("REPLYTO")) != NULL) { BUFFER buf, token; @@ -2734,14 +2730,11 @@ void mutt_init (int skip_sys_rc, LIST * commands) CurrentMenu = MENU_MAIN; - -#ifndef LOCALES_HACK /* Do we have a locale definition? */ if (((p = getenv ("LC_ALL")) != NULL && p[0]) || ((p = getenv ("LANG")) != NULL && p[0]) || ((p = getenv ("LC_CTYPE")) != NULL && p[0])) set_option (OPTLOCALES); -#endif #ifdef HAVE_GETSID /* Unset suspend by default if we're the session leader */