Code

xterm_title: use getenv() instead of g_getenv()
authorMax Kellermann <max.kellermann@gmail.com>
Mon, 20 Mar 2017 16:07:43 +0000 (17:07 +0100)
committerMax Kellermann <max.kellermann@gmail.com>
Mon, 20 Mar 2017 16:07:43 +0000 (17:07 +0100)
src/xterm_title.c

index 248cfa8c5d6a0f7291309e854eedd7c5dd936b29..cc4754a3383505f72d0b5b73cbf85be29acc8ab8 100644 (file)
@@ -21,6 +21,7 @@
 #include "options.h"
 
 #include <stdio.h>
+#include <stdlib.h>
 
 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;
        }