mirror of
https://github.com/tmux/tmux.git
synced 2025-01-12 19:39:04 +00:00
Fix warnings, from Ben Boeckel.
This commit is contained in:
parent
82e47403c6
commit
2c5f3074bc
@ -202,7 +202,7 @@ cmdq_get_command(struct cmd_list *cmdlist, struct cmd_find_state *current,
|
||||
{
|
||||
struct cmdq_item *item, *first = NULL, *last = NULL;
|
||||
struct cmd *cmd;
|
||||
struct cmdq_shared *shared;
|
||||
struct cmdq_shared *shared = NULL;
|
||||
u_int group = 0;
|
||||
|
||||
TAILQ_FOREACH(cmd, &cmdlist->list, qentry) {
|
||||
|
4
format.c
4
format.c
@ -1502,7 +1502,7 @@ format_replace(struct format_tree *ft, const char *key, size_t keylen,
|
||||
char **buf, size_t *len, size_t *off)
|
||||
{
|
||||
struct window_pane *wp = ft->wp;
|
||||
const char *errptr, *copy, *cp, *marker;
|
||||
const char *errptr, *copy, *cp, *marker = NULL;
|
||||
char *copy0, *condition, *found, *new;
|
||||
char *value, *left, *right;
|
||||
size_t valuelen;
|
||||
@ -1550,8 +1550,6 @@ format_replace(struct format_tree *ft, const char *key, size_t keylen,
|
||||
limit = 0;
|
||||
if (fm->argc == 2 && fm->argv[1] != NULL)
|
||||
marker = fm->argv[1];
|
||||
else
|
||||
marker = NULL;
|
||||
break;
|
||||
case 'l':
|
||||
modifiers |= FORMAT_LITERAL;
|
||||
|
Loading…
Reference in New Issue
Block a user