Add {} for if

This commit is contained in:
Patrick Pelissier committed 2022-05-26 22:13:24 +02:00
1 parent 2d7d267252
commit b5a3e010d8
1 file changed
+3 -3
+3 -3
View File
@@ -2304,7 +2304,7 @@ static inline bool
m_core_parse_char (char *ptr, const char str[], const char **endptr)
{
*ptr = *str++;
if (endptr != NULL) *endptr = str;
if (endptr != NULL) { *endptr = str; }
return true;
}
@@ -2313,7 +2313,7 @@ m_core_parse_bool (bool *ptr, const char str[], const char **endptr)
{
char c = *str++;
*ptr = (c == '1');
if (endptr != NULL) *endptr = str;
if (endptr != NULL) { *endptr = str; }
return (c == '0' || c == '1');
}
@@ -2323,7 +2323,7 @@ m_core_parse_bool (bool *ptr, const char str[], const char **endptr)
{ \
char *end; \
*ptr = (type) parse_func (str, &end extra_arg); \
if (endptr != NULL) *endptr = end; \
if (endptr != NULL) { *endptr = end; } \
return end != str; \
}