ref: f390a83309b792c5ecc35e64e5b6b9d8384a75ab
parent: 7b4edde1ce94b84edba5ecb954f86be60980bd9a
author: cancel <cancel@cancel.fm>
date: Tue Jan 7 03:53:57 EST 2020
Cleanup
--- a/thirdparty/gbstring.c
+++ b/thirdparty/gbstring.c
@@ -219,11 +219,11 @@
required = vsnprintf(NULL, 0, fmt, cpy);
va_end(cpy);
if (s) {
- s = gbs_makeroomfor(s, (size_t)required);
old_len = GB_STRING_HEADER(s)->len;
+ s = gbs_makeroomfor(s, (size_t)required);
} else {
- s = gbs_newcap((size_t)required);
old_len = 0;
+ s = gbs_newcap((size_t)required);
}
if (s == NULL)
return NULL;