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 a831dbb commit 5ab3636Copy full SHA for 5ab3636
pandas/src/parser/tokenizer.c
@@ -1252,11 +1252,11 @@ int parser_trim_buffers(parser_t *self) {
1252
if (newptr == NULL) {
1253
return PARSER_OUT_OF_MEMORY;
1254
} else {
1255
- // realloc sets errno when moving buffer?
+ // Update the pointers in the self->words array (char **) if `safe_realloc`
1256
+ // moved the `self->stream` buffer. This block mirrors a similar block in
1257
+ // `make_stream_space`.
1258
if (self->stream != newptr) {
- // uff
1259
/* TRACE(("Moving word pointers\n")) */
-
1260
self->pword_start = newptr + self->word_start;
1261
1262
for (i = 0; i < self->words_len; ++i)
0 commit comments