]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - ncurses/tinfo/write_entry.c
ncurses 6.4 - patch 20230418
[ncurses.git] / ncurses / tinfo / write_entry.c
index 002b117ce92dcc1f32a0b5989b26da0f589ca652..15a0d8152525088b3ef03e16b6f1ff1d0690a8f1 100644 (file)
@@ -51,7 +51,7 @@
 #define TRACE_NUM(n)           /* nothing */
 #endif
 
-MODULE_ID("$Id: write_entry.c,v 1.121 2023/03/05 18:45:59 tom Exp $")
+MODULE_ID("$Id: write_entry.c,v 1.122 2023/04/17 08:08:08 tom Exp $")
 
 static int total_written;
 static int total_parts;
@@ -215,11 +215,7 @@ _nc_set_writedir(const char *dir)
     const char *destination;
     char actual[PATH_MAX];
 
-    if (dir == 0
-#ifndef USE_ROOT_ENVIRON
-       && use_terminfo_vars()
-#endif
-       )
+    if (dir == 0 && use_terminfo_vars())
        dir = getenv("TERMINFO");
 
     if (dir != 0)