Fix warnings, from Jan Tache in GitHub issue 2692.

This commit is contained in:
nicm
2021-06-10 07:45:43 +00:00
parent 02a6b39db7
commit 6c659494f5
4 changed files with 7 additions and 6 deletions

View File

@ -4199,7 +4199,7 @@ format_replace(struct format_expand_state *es, const char *key, size_t keylen,
value = xstrdup("0");
} else {
format_log(es, "search '%s' pane %%%u", new, wp->id);
value = format_search(fm, wp, new);
value = format_search(search, wp, new);
}
free(new);
} else if (cmp != NULL) {