Skip to content

Commit 2d63fea

Browse files
committed
Fix C89 issue
1 parent c769023 commit 2d63fea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/stringio/stringio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1200,6 +1200,7 @@ strio_getline(struct getline_arg *arg, struct StringIO *ptr)
12001200
str = strio_substr(ptr, ptr->pos, e - s - w, enc);
12011201
}
12021202
else if ((n = RSTRING_LEN(str)) == 0) {
1203+
const char *paragraph_end = NULL;
12031204
p = s;
12041205
while (p[(p + 1 < e) && (*p == '\r') && 0] == '\n') {
12051206
p += *p == '\r';
@@ -1208,7 +1209,6 @@ strio_getline(struct getline_arg *arg, struct StringIO *ptr)
12081209
}
12091210
}
12101211
s = p;
1211-
const char *paragraph_end = NULL;
12121212
while ((p = memchr(p, '\n', e - p)) && (p != e)) {
12131213
p++;
12141214
if (!((p < e && *p == '\n') ||

0 commit comments

Comments
 (0)