1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

cpu/native: add braces to condition

This commit is contained in:
Benjamin Valentin 2023-02-24 22:37:06 +01:00 committed by Benjamin Valentin
parent 8b58e55580
commit 8ec1934226

View File

@ -339,8 +339,9 @@ char *make_message(const char *format, va_list argp)
free(message);
return NULL;
}
if (n < size)
if (n < size) {
return message;
}
size = n + 1;
if ((temp = realloc(message, size)) == NULL) {
free(message);