We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3fb024 commit f1c2deeCopy full SHA for f1c2dee
py/vstr.c
@@ -50,8 +50,9 @@ void vstr_init(vstr_t *vstr, size_t alloc) {
50
// Init the vstr so it allocs exactly enough ram to hold a null-terminated
51
// string of the given length, and set the length.
52
void vstr_init_len(vstr_t *vstr, size_t len) {
53
- if(len == SIZE_MAX)
+ if(len == SIZE_MAX) {
54
m_malloc_fail(len);
55
+ }
56
vstr_init(vstr, len + 1);
57
vstr->len = len;
58
}
0 commit comments