summaryrefslogtreecommitdiffstats
path: root/tty-term.c
diff options
context:
space:
mode:
Diffstat (limited to 'tty-term.c')
-rw-r--r--tty-term.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tty-term.c b/tty-term.c
index 50b2520a..dd3e8e00 100644
--- a/tty-term.c
+++ b/tty-term.c
@@ -173,7 +173,7 @@ tty_term_override(struct tty_term *term, const char *overrides)
if ((ptr = strchr(entstr, '=')) != NULL) {
*ptr++ = '\0';
val = xstrdup(ptr);
- if (strunvis(val, ptr) == NULL) {
+ if (strunvis(val, ptr) == -1) {
xfree(val);
val = xstrdup(ptr);
}