From cc79f6233d6625c811b63dd2ad19735398dae3fd Mon Sep 17 00:00:00 2001 From: Matheus Afonso Martins Moreira Date: Thu, 2 Nov 2023 08:03:16 -0300 Subject: [PATCH] vcscanf: add curly braces around else clause Makes the goto statement easier to read. Also consistent with the rest of the codebase. --- libc/stdio/vcscanf.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libc/stdio/vcscanf.c b/libc/stdio/vcscanf.c index 7032ceb51..62a2545b3 100644 --- a/libc/stdio/vcscanf.c +++ b/libc/stdio/vcscanf.c @@ -438,7 +438,9 @@ int __vcscanf(int callback(void *), // } else if (isdecexp || (hexadecimal && ishexp)) { state = SIGN; goto Continue; - } else goto Break; + } else { + goto Break; + } case SIGN: if (issign) { state = EXPONENT;