Skip to content

Commit

Permalink
codestyle: use curve braces
Browse files Browse the repository at this point in the history
  • Loading branch information
dalerank authored Aug 10, 2023
1 parent 1954afd commit cbc035b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/string.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,9 @@ uint8_t *string_copy(const uint8_t *src, uint8_t *dst, int maxlength)

int string_length(const uint8_t *str)
{
if (!str)
if (!str) {
return 0;
}

int length = 0;
while (*str) {
Expand Down

0 comments on commit cbc035b

Please sign in to comment.