diff options
author | Eduardo Chappa <chappa@washington.edu> | 2021-05-21 20:58:51 -0600 |
---|---|---|
committer | Eduardo Chappa <chappa@washington.edu> | 2021-05-21 20:58:51 -0600 |
commit | d31cd71e5a3d73e20cfff89968c7b932d451f75c (patch) | |
tree | 264309197f0d847683df0ef960f87d5734c5f225 /pith/text.c | |
parent | 2e57dfe03e4df802d530ae217415d50419ab4e20 (diff) | |
download | alpine-d31cd71e5a3d73e20cfff89968c7b932d451f75c.tar.xz |
* Clear out some gcc warnings, and code improvement. Work in progress.
Diffstat (limited to 'pith/text.c')
-rw-r--r-- | pith/text.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pith/text.c b/pith/text.c index 6d256420..1d3f1d90 100644 --- a/pith/text.c +++ b/pith/text.c @@ -570,7 +570,7 @@ delete_quotes(long int linenum, char *line, LT_INS_S **ins, void *local) DELQ_S *dq; char *lp; int i, lines, not_a_quote = 0; - size_t len; + size_t len = 0; dq = (DELQ_S *) local; if(!dq) @@ -800,7 +800,7 @@ int replace_quotes(long int linenum, char *line, LT_INS_S **ins, void *local) { char *lp = line, *prefix = NULL, *last_prefix = NULL; - int no_more_quotes = 0, len, saw_quote = 0; + int no_more_quotes = 0, len = 0, saw_quote = 0; if(ps_global->VAR_QUOTE_REPLACE_STRING){ get_pair(ps_global->VAR_QUOTE_REPLACE_STRING, &prefix, &last_prefix, 0, 0); |