diff options
author | John MacFarlane <jgm@berkeley.edu> | 2015-06-06 23:09:50 +0200 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2015-06-06 23:09:50 +0200 |
commit | 13947ca611561e1771f14469696ee61a53cebbe9 (patch) | |
tree | 8f2ef30bd238f730b064b07e31807e5c93167d39 /src/chunk.h | |
parent | 56b1123c6662169ffe6a0eabc67f8533e745eb97 (diff) |
astyle formatting changes.
Diffstat (limited to 'src/chunk.h')
-rw-r--r-- | src/chunk.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/chunk.h b/src/chunk.h index 4bb4980..a246a9d 100644 --- a/src/chunk.h +++ b/src/chunk.h @@ -66,8 +66,8 @@ static inline const char *cmark_chunk_to_cstr(cmark_chunk *c) } str = (unsigned char *)malloc(c->len + 1); if(str != NULL) { - if(c->len > 0){ - memcpy(str, c->data, c->len); + if(c->len > 0) { + memcpy(str, c->data, c->len); } str[c->len] = 0; } @@ -86,8 +86,7 @@ static inline void cmark_chunk_set_cstr(cmark_chunk *c, const char *str) c->len = 0; c->data = NULL; c->alloc = 0; - } - else { + } else { c->len = strlen(str); c->data = (unsigned char *)malloc(c->len + 1); c->alloc = 1; |