Skip to content

Commit 8f4b001

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

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
@@ -118,7 +118,7 @@ int parse_iso_8601_datetime(const char *str, int len, int want_exc,
118118
goto parse_error;
119119
int year_leap = 0;
120120
int i, numdigits;
121-
const char *substr;
121+
const char *substr = NULL;
122122
int sublen;
123123
NPY_DATETIMEUNIT bestunit = NPY_FR_GENERIC;
124124
DatetimePartParseResult comparison;

0 commit comments

Comments
 (0)