diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2019-01-22 11:42:58 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2019-01-22 11:42:58 +0100 |
commit | ebe5c7e428b57dca758b1b3a1d8b7d4b423b19a9 (patch) | |
tree | bf97a4ba3a05c24ae1ec176f42656ce1608ee8d1 /strbuf.c | |
parent | Add very simple err header. (diff) | |
download | calp-ebe5c7e428b57dca758b1b3a1d8b7d4b423b19a9.tar.gz calp-ebe5c7e428b57dca758b1b3a1d8b7d4b423b19a9.tar.xz |
Start using trie's instead of hash-maps.
Diffstat (limited to 'strbuf.c')
-rw-r--r-- | strbuf.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -101,12 +101,13 @@ int strbuf_reset(strbuf* s) int strbuf_init_copy(strbuf* dest, strbuf* src) { #ifdef SAFE_STR if (dest->alloc != 0) { + printf("%lu ", dest->alloc); ERR("Dest already allocated"); return 1; } #endif - strbuf_init_1(dest, src->len + 1); + CONSTRUCT(strbuf, dest, src->len + 1); strbuf_copy(dest, src); return 0; |