Change-Id: Ie7448c3890582b7703c6fdbeda3dbc1589c38a28
Signed-off-by: jusung son <jusung07.son@samsung.com>
UNUSED const char *rpriv, UNUSED const char *wpriv)
{
int r;
- struct buxton_value val;
+ struct buxton_value val = { BUXTON_TYPE_UNKNOWN, };
char err_buf[BUFFER_SIZE];
if (!layer || !key || !*key) {
{
struct buxton_layer *normal_layer;
struct buxton_layer *base_layer;
- struct buxton_value val;
+ struct buxton_value val = { BUXTON_TYPE_UNKNOWN, };
char **keys;
unsigned int len;
int r;
switch (val->type) {
case BUXTON_TYPE_STRING:
- free(val->value.s);
+ if (val->value.s) {
+ free(val->value.s);
+ val->value.s = NULL;
+ }
break;
default:
break;