initialize result to NULL to shun compiler warning
This commit is contained in:
parent
adda6b4dd5
commit
862297ecad
@ -93,7 +93,7 @@ static int valid_color(const char *value)
|
||||
*/
|
||||
static char *resolve_tilde(const char *path) {
|
||||
static glob_t globbuf;
|
||||
char *head, *tail, *result;
|
||||
char *head, *tail, *result = NULL;
|
||||
|
||||
tail = strchr(path, '/');
|
||||
head = strndup(path, tail ? (size_t)(tail - path) : strlen(path));
|
||||
|
Loading…
Reference in New Issue
Block a user