mirror of
https://github.com/tmate-io/tmate.git
synced 2026-07-30 14:20:01 +00:00
Check the return value of strunvis against -1 not NULL.
This commit is contained in:
parent
926b52b600
commit
1eb303e6d4
1 changed files with 1 additions and 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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue