diff options
author | Christian Persch <chpe@gnome.org> | 2015-03-24 14:58:29 +0100 |
---|---|---|
committer | Christian Persch <chpe@gnome.org> | 2015-03-24 15:01:22 +0100 |
commit | 8189dc84ee810095fd7e5995026012e424998126 (patch) | |
tree | a367cb33d9152103b60cfcebfad60d619ee09ea7 | |
parent | 9a58886bca9552937ddb9632d6c77a82bd2ab219 (diff) | |
download | vte-8189dc84ee810095fd7e5995026012e424998126.tar.gz |
pty: More correct assertion
Unlikely this is a problem, but was pointed out in
https://bugzilla.gnome.org/show_bug.cgi?id=746667
(cherry picked from commit 3b1a3ce742c8dcbb58d0d434f82758d5156db9dc)
-rw-r--r-- | src/pty.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1338,7 +1338,7 @@ vte_pty_set_utf8(VtePty *pty, g_return_val_if_fail(VTE_IS_PTY(pty), FALSE); priv = pty->priv; - g_return_val_if_fail (priv->pty_fd > 0, FALSE); + g_return_val_if_fail (priv->pty_fd != -1, FALSE); if (tcgetattr(priv->pty_fd, &tio) == -1) { int errsv = errno; |