diff options
author | Johannes Löthberg <johannes@kyriasis.com> | 2015-01-20 15:16:00 +0100 |
---|---|---|
committer | Johannes Löthberg <johannes@kyriasis.com> | 2015-01-20 15:16:00 +0100 |
commit | 1017ce0a91b8c66d36c9b65b0a1a0011342fa958 (patch) | |
tree | 8cf7b842a17eaa8175f15999bb6f26a0e52ab8b7 | |
parent | 8fdbb0b1ed2c166d31b4ad3692ef040ca00cba80 (diff) | |
download | sds-1017ce0a91b8c66d36c9b65b0a1a0011342fa958.tar.xz |
Missing braces in sdssplitlen cleanup
-rw-r--r-- | src/sds.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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; |