From: Max Kellermann Date: Mon, 20 Mar 2017 16:07:43 +0000 (+0100) Subject: xterm_title: use getenv() instead of g_getenv() X-Git-Tag: v0.27~37 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=0001d9fd7bf18ef237e62ebb018ed83aa81dfbda;p=ncmpc.git xterm_title: use getenv() instead of g_getenv() --- diff --git a/src/xterm_title.c b/src/xterm_title.c index 248cfa8..cc4754a 100644 --- a/src/xterm_title.c +++ b/src/xterm_title.c @@ -21,6 +21,7 @@ #include "options.h" #include +#include void set_xterm_title(const char *title) @@ -31,7 +32,7 @@ set_xterm_title(const char *title) if (!options.enable_xterm_title) return; - if (g_getenv("WINDOWID") == NULL) { + if (getenv("WINDOWID") == NULL) { options.enable_xterm_title = FALSE; return; }