mirror of
https://github.com/tmux/tmux.git
synced 2025-01-13 03:48:51 +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 cmdq_item *item, *first = NULL, *last = NULL;
|
||||||
struct cmd *cmd;
|
struct cmd *cmd;
|
||||||
struct cmdq_shared *shared;
|
struct cmdq_shared *shared = NULL;
|
||||||
u_int group = 0;
|
u_int group = 0;
|
||||||
|
|
||||||
TAILQ_FOREACH(cmd, &cmdlist->list, qentry) {
|
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)
|
char **buf, size_t *len, size_t *off)
|
||||||
{
|
{
|
||||||
struct window_pane *wp = ft->wp;
|
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 *copy0, *condition, *found, *new;
|
||||||
char *value, *left, *right;
|
char *value, *left, *right;
|
||||||
size_t valuelen;
|
size_t valuelen;
|
||||||
@ -1550,8 +1550,6 @@ format_replace(struct format_tree *ft, const char *key, size_t keylen,
|
|||||||
limit = 0;
|
limit = 0;
|
||||||
if (fm->argc == 2 && fm->argv[1] != NULL)
|
if (fm->argc == 2 && fm->argv[1] != NULL)
|
||||||
marker = fm->argv[1];
|
marker = fm->argv[1];
|
||||||
else
|
|
||||||
marker = NULL;
|
|
||||||
break;
|
break;
|
||||||
case 'l':
|
case 'l':
|
||||||
modifiers |= FORMAT_LITERAL;
|
modifiers |= FORMAT_LITERAL;
|
||||||
|
Loading…
Reference in New Issue
Block a user