summaryrefslogtreecommitdiff
path: root/zwgc
diff options
context:
space:
mode:
authorGravatar Lucien Van Elsen <lwvanels@mit.edu>1992-08-26 00:21:45 +0000
committerGravatar Lucien Van Elsen <lwvanels@mit.edu>1992-08-26 00:21:45 +0000
commit15f18c143f0378075d9aac7947b23a7b52b4559c (patch)
tree5d0e926be8cdf5be40179d87a274e90f5956e790 /zwgc
parent96a86fd26c03c2899edc539067aefb694318777f (diff)
(tty_filter_init) multiple calls caused memory
leak.
Diffstat (limited to 'zwgc')
-rw-r--r--zwgc/tty_filter.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/zwgc/tty_filter.c b/zwgc/tty_filter.c
index 1dffb70..6f3e4db 100644
--- a/zwgc/tty_filter.c
+++ b/zwgc/tty_filter.c
@@ -80,7 +80,8 @@ char **argv;
string_dictionary_binding *b;
int isrealtty = string_Eq(drivername, "tty");
- termcap_dict = string_dictionary_Create(7);
+ if (termcap_dict == (string_dictionary) NULL)
+ termcap_dict = string_dictionary_Create(7);
if (!(term = getenv("TERM"))) { /* Only use termcap if $TERM. */
if (isrealtty && !notfirst)