diff options
author | ats <ats@FreeBSD.org> | 1994-11-18 12:38:43 +0000 |
---|---|---|
committer | ats <ats@FreeBSD.org> | 1994-11-18 12:38:43 +0000 |
commit | b600470787ac5c1b875a9418043f03b7d4006b18 (patch) | |
tree | 64ef16e0ecbbcce52a219cd5ddf2a9f56f79b2a9 /lib/libtermcap/termcap.c | |
parent | 4038d7254e608598e3735ce0729510e346642d76 (diff) | |
download | FreeBSD-src-b600470787ac5c1b875a9418043f03b7d4006b18.zip FreeBSD-src-b600470787ac5c1b875a9418043f03b7d4006b18.tar.gz |
Makefile:
Change the reference for the libtermcap libtermlib link from SHLIBDIR
to LIBDIR. SHLIBDIR is undefined in the standard case.
termcap.c:
Initialize a local variable to zero. Otherwise an erroneous free call
can happen and clobber the calling program.
Seen with vi and gdb. If you have TERMCAP set with a terminal entry and
set TERM with something like huhu, vi and gdb core dumps.
Diffstat (limited to 'lib/libtermcap/termcap.c')
-rw-r--r-- | lib/libtermcap/termcap.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libtermcap/termcap.c b/lib/libtermcap/termcap.c index 708ccfa..51f0288 100644 --- a/lib/libtermcap/termcap.c +++ b/lib/libtermcap/termcap.c @@ -78,6 +78,7 @@ tgetent(bp, name) char **pvec; /* holds usable tail of path vector */ char *termpath; + dummy = NULL; fname = pathvec; pvec = pathvec; tbuf = bp; |