bluetooth: host: fix missing log_strdup
Fix missing log_strdup when loading bt/name setting. It should be done on every string which is not in read only memory. Signed-off-by: François Delawarde <fnde@oticon.com>
This commit is contained in:
parent
eaa6058ebd
commit
129e05c03f
1 changed files with 1 additions and 1 deletions
|
@ -168,7 +168,7 @@ static int set(const char *name, size_t len_rd, settings_read_cb read_cb,
|
|||
} else {
|
||||
bt_dev.name[len] = '\0';
|
||||
|
||||
BT_DBG("Name set to %s", bt_dev.name);
|
||||
BT_DBG("Name set to %s", log_strdup(bt_dev.name));
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue