Skip to content

Commit 5ab3636

Browse files
committed
Expanded the explanation of the patch
1 parent a831dbb commit 5ab3636

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pandas/src/parser/tokenizer.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -1252,11 +1252,11 @@ int parser_trim_buffers(parser_t *self) {
12521252
if (newptr == NULL) {
12531253
return PARSER_OUT_OF_MEMORY;
12541254
} else {
1255-
// realloc sets errno when moving buffer?
1255+
// 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`.
12561258
if (self->stream != newptr) {
1257-
// uff
12581259
/* TRACE(("Moving word pointers\n")) */
1259-
12601260
self->pword_start = newptr + self->word_start;
12611261

12621262
for (i = 0; i < self->words_len; ++i)

0 commit comments

Comments
 (0)