mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-01-03 10:32:33 +01:00
client: Handle empty entity field
This commit is contained in:
parent
bfbffa1111
commit
0c64cc226a
@ -166,8 +166,9 @@ void display_refresh_set_cmd(const char *family, const char *entity,
|
|||||||
|
|
||||||
if (display_refresh.family && !strcmp(display_refresh.family, family)) {
|
if (display_refresh.family && !strcmp(display_refresh.family, family)) {
|
||||||
char *prompt =
|
char *prompt =
|
||||||
l_strdup_printf(IWD_PROMPT"%s %s %s %s\n",
|
l_strdup_printf(IWD_PROMPT"%s%s%s %s %s\n",
|
||||||
family ? : "", entity ? : "",
|
family ? : "",
|
||||||
|
entity ? " " : "", entity ? : "",
|
||||||
cmd->cmd ? : "", args ? : "");
|
cmd->cmd ? : "", args ? : "");
|
||||||
|
|
||||||
l_queue_push_tail(display_refresh.redo_entries, prompt);
|
l_queue_push_tail(display_refresh.redo_entries, prompt);
|
||||||
|
Loading…
Reference in New Issue
Block a user