Parent: 4dc3fd37f76f27b81652c28c87ae0a1958533c23
Author: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2018-03-29 14:10:24
Tree: 95ba810a9cad72f59226d0fd362e38622aaeae04
shared/shell: Don't allocate any data if env value is NULL If value is NULL there is no point in allocating any data if value is NULL since bt_shell_get_env would return NULL anyway, also this makes sure the existing value is freed which means passing NULL can remove an env like it was intended.
Diffstat
| M | src/shared/shell.c | | | 6 | ++++++ |
1 files changed, 6 insertions(+), 0 deletions(-)