diff options
| author | Ed Schouten <ed@FreeBSD.org> | 2010-01-02 10:13:21 +0000 |
|---|---|---|
| committer | Ed Schouten <ed@FreeBSD.org> | 2010-01-02 10:13:21 +0000 |
| commit | d93708c3e6940e90b6df87f7198e9fb893a07806 (patch) | |
| tree | f31d67a98a48774ef9aafd050d1d1899aea187fd /usr.bin/script | |
| parent | b3c73ef101e0f5403a4080e2c058d11a3b9eebbf (diff) | |
Notes
Diffstat (limited to 'usr.bin/script')
| -rw-r--r-- | usr.bin/script/script.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/script/script.c b/usr.bin/script/script.c index ad706dcdd350..bd2de283ebf8 100644 --- a/usr.bin/script/script.c +++ b/usr.bin/script/script.c @@ -126,7 +126,7 @@ main(int argc, char *argv[]) if ((fscript = fopen(fname, aflg ? "a" : "w")) == NULL) err(1, "%s", fname); - if (ttyflg = isatty(STDIN_FILENO)) { + if ((ttyflg = isatty(STDIN_FILENO)) != 0) { if (tcgetattr(STDIN_FILENO, &tt) == -1) err(1, "tcgetattr"); if (ioctl(STDIN_FILENO, TIOCGWINSZ, &win) == -1) |
