Silence spurious compiler warning

This commit is contained in:
Kovid Goyal 2021-04-19 13:27:17 +05:30
parent 2c5c869228
commit b16317e2ca
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -318,7 +318,7 @@ parse_osc_8(char *buf, char **id, char **url) {
if (boundary == NULL) return false;
*boundary = 0;
if (*(boundary + 1)) *url = boundary + 1;
char *save, *token = strtok_r(buf, ":", &save);
char *save = NULL, *token = strtok_r(buf, ":", &save);
while (token != NULL) {
size_t len = strlen(token);
if (len > 3 && token[0] == 'i' && token[1] == 'd' && token[2] == '=' && token[3]) {