diff options
| author | Jordan K. Hubbard <jkh@FreeBSD.org> | 1996-07-12 18:57:58 +0000 |
|---|---|---|
| committer | Jordan K. Hubbard <jkh@FreeBSD.org> | 1996-07-12 18:57:58 +0000 |
| commit | 51295a4d3e4c551df85249433c490208dc7fd23d (patch) | |
| tree | c116431af8e1f042b25e0f70c63c437cf7ff8d63 /lib/libtermcap/termcap.c | |
| parent | af7a29993083b1562f01c87bb774fbe4fc3579e7 (diff) | |
Notes
Diffstat (limited to 'lib/libtermcap/termcap.c')
| -rw-r--r-- | lib/libtermcap/termcap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libtermcap/termcap.c b/lib/libtermcap/termcap.c index 7f8d39d9031e..38cb1a22a80d 100644 --- a/lib/libtermcap/termcap.c +++ b/lib/libtermcap/termcap.c @@ -101,10 +101,10 @@ tgetent(char *bp, const char *name) * becomes "$HOME/.termcap /etc/termcap" if no TERMPATH exists. */ if (!cp || *cp != '/') { /* no TERMCAP or it holds an entry */ - if (termpath = getenv("TERMPATH")) + if ( (termpath = getenv("TERMPATH")) ) strncpy(pathbuf, termpath, PBUFSIZ); else { - if (home = getenv("HOME")) { /* set up default */ + if ( (home = getenv("HOME")) ) {/* set up default */ p += strlen(home); /* path, looking in */ strcpy(pathbuf, home); /* $HOME first */ *p++ = '/'; |
