diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2009-08-23 11:40:05 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2009-08-23 11:40:05 +0000 |
commit | 1eb303e6d401c1ef2992933532eb2d7eab36cecf (patch) | |
tree | 35f94a052f5fb92eb4c397f3e09942760e8e7fa1 | |
parent | 926b52b6002164b4bc82624674d488e7fe1e42c2 (diff) | |
download | rtmux-1eb303e6d401c1ef2992933532eb2d7eab36cecf.tar.gz rtmux-1eb303e6d401c1ef2992933532eb2d7eab36cecf.tar.bz2 rtmux-1eb303e6d401c1ef2992933532eb2d7eab36cecf.zip |
Check the return value of strunvis against -1 not NULL.
-rw-r--r-- | tty-term.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } |