From da45ad354996a31796282dcf7815b0e24676c709 Mon Sep 17 00:00:00 2001 From: Federico Kircheis Date: Fri, 2 Mar 2018 19:19:07 +0100 Subject: [PATCH] Reduce variable scope - doc/makedoc.c --- doc/makedoc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/doc/makedoc.c b/doc/makedoc.c index 3046df957fa..02eecd059fb 100644 --- a/doc/makedoc.c +++ b/doc/makedoc.c @@ -905,7 +905,6 @@ static int handle_docline(char *l, FILE *out, int docstat) { bool output_dollar = false; char *ref = NULL; - char save; s++; if (*s == '$') @@ -924,7 +923,7 @@ static int handle_docline(char *l, FILE *out, int docstat) s++; docstat = commit_buf(buf, &d, out, docstat); - save = *s; + const char save = *s; *s = '\0'; print_ref(out, output_dollar, ref); *s = save;