coding guidelines: comply with MISRA Rule 15.6

- added missing braces

Signed-off-by: Hess Nathan <nhess@baumer.com>
This commit is contained in:
Hess Nathan 2024-04-29 11:11:02 +02:00 committed by Carles Cufí
parent bc5d531165
commit a1fc3b78ef

View file

@ -117,8 +117,9 @@ static int vpf(struct _pfr *r, const char *f, va_list ap)
int d = (v >> (i*4)) & 0xf;
sig += !!d;
if (sig || i == 0)
if (sig || i == 0) {
pc(r, "0123456789abcdef"[d]);
}
}
break;
}