diff options
| author | Jeff Epler <jepler@gmail.com> | 2020-01-08 16:36:43 -0600 |
|---|---|---|
| committer | Jeff Epler <jepler@gmail.com> | 2020-01-08 16:36:43 -0600 |
| commit | f1c2dee1c05227d63e3833cb10d6fe99b9bd5092 (patch) | |
| tree | 87af46b49b7e7d3baea18850bc687334c9d36a54 | |
| parent | b3fb0243011a2797ef41c3014c7fcdaca4331765 (diff) | |
style
| -rw-r--r-- | py/vstr.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -50,8 +50,9 @@ void vstr_init(vstr_t *vstr, size_t alloc) { // Init the vstr so it allocs exactly enough ram to hold a null-terminated // string of the given length, and set the length. void vstr_init_len(vstr_t *vstr, size_t len) { - if(len == SIZE_MAX) + if(len == SIZE_MAX) { m_malloc_fail(len); + } vstr_init(vstr, len + 1); vstr->len = len; } |
