From 8069939112f55f31da87beaa3a8c17aee8ef4ba0 Mon Sep 17 00:00:00 2001 From: Mahmoud Al-Qudsi Date: Thu, 8 Feb 2018 17:36:29 -0600 Subject: [PATCH] fixup! Fix memory leak in `term_env` --- src/env.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/env.cpp b/src/env.cpp index 13f694c0e..b51b8729f 100644 --- a/src/env.cpp +++ b/src/env.cpp @@ -549,7 +549,7 @@ static bool initialize_curses_using_fallback(const char *term) { if (term_var.missing_or_empty()) return false; auto term_env = wcs2string(term_var->as_string()); - if (term_env != DEFAULT_TERM1 || term_env != DEFAULT_TERM2) return false; + if (term_env == DEFAULT_TERM1 || term_env == DEFAULT_TERM2) return false; if (is_interactive_session) debug(1, _(L"Using fallback terminal type '%s'."), term);