From 3e1bf8ba920e21c8cb5bd1c91895efb5fea0f010 Mon Sep 17 00:00:00 2001 From: Renge Date: Fri, 4 Mar 2022 10:55:54 -0500 Subject: [PATCH] fix: uninitialized value in reformat.c --- hw2/src/reformat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw2/src/reformat.c b/hw2/src/reformat.c index c604a8b..0c1d1b0 100644 --- a/hw2/src/reformat.c +++ b/hw2/src/reformat.c @@ -159,7 +159,7 @@ char **reformat(const char * const *inlines, int width, { int numin, numout, affix, L, linelen, newL; const char * const *line, **suffixes = NULL, **suf, *end, *p1, *p2; - char *q1, *q2, **outlines; + char *q1, *q2, **outlines = NULL; struct word dummy, *head, *tail, *w1, *w2; struct buffer *pbuf = NULL;