Fix empty format strings, from Jean-Philippe Menil.

This commit is contained in:
Nicholas Marriott
2021-06-10 08:08:31 +01:00
parent 607e6b1c33
commit 747423be67

View File

@ -87,7 +87,7 @@ cmd_show_prompt_history_exec(struct cmd *self, struct cmdq_item *item)
cmdq_print(item, "%d: %s", hidx + 1,
status_prompt_hlist[tidx][hidx]);
}
cmdq_print(item, "");
cmdq_print(item, "%s", "");
}
} else {
type = status_prompt_type(typestr);
@ -101,7 +101,7 @@ cmd_show_prompt_history_exec(struct cmd *self, struct cmdq_item *item)
cmdq_print(item, "%d: %s", hidx + 1,
status_prompt_hlist[type][hidx]);
}
cmdq_print(item, "");
cmdq_print(item, "%s", "");
}
return (CMD_RETURN_NORMAL);