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 c769023 commit 2d63feaCopy full SHA for 2d63fea
ext/stringio/stringio.c
@@ -1200,6 +1200,7 @@ strio_getline(struct getline_arg *arg, struct StringIO *ptr)
1200
str = strio_substr(ptr, ptr->pos, e - s - w, enc);
1201
}
1202
else if ((n = RSTRING_LEN(str)) == 0) {
1203
+ const char *paragraph_end = NULL;
1204
p = s;
1205
while (p[(p + 1 < e) && (*p == '\r') && 0] == '\n') {
1206
p += *p == '\r';
@@ -1208,7 +1209,6 @@ strio_getline(struct getline_arg *arg, struct StringIO *ptr)
1208
1209
1210
1211
s = p;
- const char *paragraph_end = NULL;
1212
while ((p = memchr(p, '\n', e - p)) && (p != e)) {
1213
p++;
1214
if (!((p < e && *p == '\n') ||
0 commit comments