Fix 'gcc -Wextra -Wno-unused-parameter'.
This commit is contained in:
committed by
Michael Stapelberg
parent
2314f10778
commit
f78c1ba053
@ -453,7 +453,7 @@ static char *resolve_tilde(const char *path) {
|
||||
char *head, *tail, *result;
|
||||
|
||||
tail = strchr(path, '/');
|
||||
head = strndup(path, tail ? tail - path : strlen(path));
|
||||
head = strndup(path, tail ? (size_t)(tail - path) : strlen(path));
|
||||
|
||||
int res = glob(head, GLOB_TILDE, NULL, &globbuf);
|
||||
free(head);
|
||||
|
Reference in New Issue
Block a user