commit | ed5ee4d4c3444cbf51ea84a13d484629d3795186 | [log] [tgz] |
---|---|---|
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | Mon Mar 26 15:03:21 2018 +0300 |
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | Thu Mar 29 14:10:24 2018 +0300 |
tree | 95ba810a9cad72f59226d0fd362e38622aaeae04 | |
parent | 4dc3fd37f76f27b81652c28c87ae0a1958533c23 [diff] |
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.