commit | 1e008d23b30fa88e6ac46cb3e7c861ae0db8fa2c | [log] [tgz] |
---|---|---|
author | Radek Krejci <rkrejci@cesnet.cz> | Mon Aug 17 11:37:37 2020 +0200 |
committer | Radek Krejci <rkrejci@cesnet.cz> | Fri Aug 21 17:02:23 2020 +0200 |
tree | 36751cb3dfbe92a0003bea4a00e622755d119ed1 | |
parent | f54e7bc9571fba963d03d881267779959455a045 [diff] [blame] |
libyang MAINTENANCE change format of the empty loops To improve readability and because of processing by the formatting tools, add explicit empty block to the empty loops (for, while).
diff --git a/compat/compat.c b/compat/compat.c index c056484..7a06d58 100644 --- a/compat/compat.c +++ b/compat/compat.c
@@ -80,7 +80,7 @@ size_t len = 0; /* strnlen */ - for (; (len < n) && (s[len] != '\0'); ++len); + for (; (len < n) && (s[len] != '\0'); ++len) {} if (!(buf = malloc(len + 1U))) { return NULL;