Skip to content

Commit e36d1e3

Browse files
committed
Silence uninitialized substr warning
1 parent 8f4b001 commit e36d1e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/_libs/src/vendored/numpy/datetime/np_datetime_strings.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,11 @@ int parse_iso_8601_datetime(const char *str, int len, int want_exc,
114114
int format_len,
115115
FormatRequirement format_requirement,
116116
double threshold) {
117+
const char *substr = NULL;
117118
if (len < 0 || format_len < 0)
118119
goto parse_error;
119120
int year_leap = 0;
120121
int i, numdigits;
121-
const char *substr = NULL;
122122
int sublen;
123123
NPY_DATETIMEUNIT bestunit = NPY_FR_GENERIC;
124124
DatetimePartParseResult comparison;

0 commit comments

Comments
 (0)