summaryrefslogtreecommitdiff
path: root/zwgc
diff options
context:
space:
mode:
authorGravatar Greg Hudson <ghudson@mit.edu>2001-10-23 13:57:57 +0000
committerGravatar Greg Hudson <ghudson@mit.edu>2001-10-23 13:57:57 +0000
commit072b660a233cc94b27e2665cee5d2f97f33916ec (patch)
tree176e4208f35ccc5996c57ee01a0fd12615d11f91 /zwgc
parent4db0326bade6909dbd6f639d1fab2aaa847b0a2a (diff)
From Greg Stark: clean up some use of possibly uninitialized fields.
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 86ab8f9..1a05cf5 100644
--- a/zwgc/tty_filter.c
+++ b/zwgc/tty_filter.c
@@ -321,6 +321,7 @@ static tty_str_info *convert_desc_to_tty_str_info(desc)
/* Add new block (call it temp) to result: */
temp = (tty_str_info *)malloc(sizeof(struct _tty_str_info));
+ *temp = current_mode;
if (last_result_block) {
last_result_block->next = temp;
last_result_block = temp;
@@ -344,13 +345,13 @@ static tty_str_info *convert_desc_to_tty_str_info(desc)
}
if (desc->code == DT_STR) {
/* just combine string info with current mode: */
- *temp = current_mode;
temp->str = desc->str;
temp->len = desc->len;
} else if (desc->code == DT_NL) {
/* make the new block a ' ' alignment block with an empty string */
temp->alignment = ' ';
temp->len = 0;
+ temp->ignore = 0;
}
}