mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-27 18:51:41 +02:00
Silence spurious compiler warning
This commit is contained in:
@@ -318,7 +318,7 @@ parse_osc_8(char *buf, char **id, char **url) {
|
|||||||
if (boundary == NULL) return false;
|
if (boundary == NULL) return false;
|
||||||
*boundary = 0;
|
*boundary = 0;
|
||||||
if (*(boundary + 1)) *url = boundary + 1;
|
if (*(boundary + 1)) *url = boundary + 1;
|
||||||
char *save, *token = strtok_r(buf, ":", &save);
|
char *save = NULL, *token = strtok_r(buf, ":", &save);
|
||||||
while (token != NULL) {
|
while (token != NULL) {
|
||||||
size_t len = strlen(token);
|
size_t len = strlen(token);
|
||||||
if (len > 3 && token[0] == 'i' && token[1] == 'd' && token[2] == '=' && token[3]) {
|
if (len > 3 && token[0] == 'i' && token[1] == 'd' && token[2] == '=' && token[3]) {
|
||||||
|
|||||||
Reference in New Issue
Block a user