aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2015-01-20 15:16:00 +0100
committerJohannes Löthberg <johannes@kyriasis.com>2015-01-20 15:16:00 +0100
commit1017ce0a91b8c66d36c9b65b0a1a0011342fa958 (patch)
tree8cf7b842a17eaa8175f15999bb6f26a0e52ab8b7 /src
parent8fdbb0b1ed2c166d31b4ad3692ef040ca00cba80 (diff)
downloadsds-1017ce0a91b8c66d36c9b65b0a1a0011342fa958.tar.xz
Missing braces in sdssplitlen cleanup
Diffstat (limited to 'src')
-rw-r--r--src/sds.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/sds.c b/src/sds.c
index 841a6ae..674fc48 100644
--- a/src/sds.c
+++ b/src/sds.c
@@ -527,7 +527,9 @@ sds *sdssplitlen(const char *s, size_t len, const char *sep, size_t seplen, size
cleanup:
{
- for (size_t i = 0; i < elements; i++) sdsfree(tokens[i]);
+ for (size_t i = 0; i < elements; i++) {
+ sdsfree(tokens[i]);
+ }
free(tokens);
*count = 0;
return NULL;