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:
François Delawarde 2019-11-06 13:53:06 +01:00 committed by Johan Hedberg
commit 129e05c03f

View file

@ -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;
}