diff --git a/src/string_utils.h b/src/string_utils.h index 461173a346..d4781e2d9a 100644 --- a/src/string_utils.h +++ b/src/string_utils.h @@ -24,8 +24,9 @@ static inline int uitostr(unsigned int n, char *buf) { ret++; } - if (ret == 0) + if (ret == 0) { ret = 1; + } int pos = ret; while (pos--) { @@ -36,18 +37,22 @@ static inline int uitostr(unsigned int n, char *buf) { } static inline const char *skip_space_const(const char *src) { - if (!src) + if (!src) { return NULL; - while (*src && isspace((unsigned char)*src)) + } + while (*src && isspace((unsigned char)*src)) { src++; + } return src; } static inline char *skip_space_mut(char *src) { - if (!src) + if (!src) { return NULL; - while (*src && isspace((unsigned char)*src)) + } + while (*src && isspace((unsigned char)*src)) { src++; + } return src; }