Skip to content

Commit 040fac0

Browse files
committed
No need to track excess length
.. this is a relic from when the actual required length was given back to the caller
1 parent cc7d550 commit 040fac0

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

shared-module/os/getenv.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,6 @@ STATIC void seek_eof(file_arg *active_file) {
101101
STATIC void vstr_add_byte_nonstd(vstr_t *vstr, byte b) {
102102
if (!vstr->fixed_buf || vstr->alloc > vstr->len) {
103103
vstr_add_byte(vstr, b);
104-
} else {
105-
vstr->len++;
106104
}
107105
}
108106

@@ -114,8 +112,6 @@ STATIC void vstr_add_char_nonstd(vstr_t *vstr, unichar c) {
114112
(c < 0x10000) ? 3 : 4;
115113
if (!vstr->fixed_buf || vstr->alloc > vstr->len + ulen) {
116114
vstr_add_char(vstr, c);
117-
} else {
118-
vstr->len += ulen;
119115
}
120116
}
121117

0 commit comments

Comments
 (0)