aboutsummaryrefslogtreecommitdiff
path: root/strbuf.h
diff options
context:
space:
mode:
Diffstat (limited to 'strbuf.h')
-rw-r--r--strbuf.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/strbuf.h b/strbuf.h
index 71fe4e88..13c030dd 100644
--- a/strbuf.h
+++ b/strbuf.h
@@ -16,12 +16,12 @@ struct strbuf {
char* mem;
/* TODO add support for negative ptr */
int ptr;
- unsigned int alloc;
+ unsigned int alloc = 0;
unsigned int len;
- strbuf (size_t len);
+ // strbuf (size_t len);
strbuf (strbuf& other);
- strbuf () : strbuf (1) { };
+ strbuf ();
~strbuf ();