diff options
author | Günther Deschner <gd@samba.org> | 2016-09-19 17:11:19 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2017-01-06 12:28:19 +0100 |
commit | 235aa6754471122bd5791614953eeea6d86e2a5e (patch) | |
tree | bf5fb7ae09357fcedf634ac3218fc561306828a6 /libgpo/gpo_ini.c | |
parent | 06978c65414a3afb25e22d40379208ca3857bcbc (diff) | |
download | samba-235aa6754471122bd5791614953eeea6d86e2a5e.tar.gz |
libgpo: default to empty values if none are there
Guenther
Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'libgpo/gpo_ini.c')
-rw-r--r-- | libgpo/gpo_ini.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libgpo/gpo_ini.c b/libgpo/gpo_ini.c index 0d45dbb2de4..95673bce13a 100644 --- a/libgpo/gpo_ini.c +++ b/libgpo/gpo_ini.c @@ -56,7 +56,7 @@ static bool store_keyval_pair(const char *key, const char *value, void *ctx_ptr) } ctx->data[ctx->keyval_count]->key = talloc_asprintf(ctx, "%s:%s", ctx->current_section, key); - ctx->data[ctx->keyval_count]->val = talloc_strdup(ctx, value); + ctx->data[ctx->keyval_count]->val = talloc_strdup(ctx, value ? value : ""); if (!ctx->data[ctx->keyval_count]->key || !ctx->data[ctx->keyval_count]->val) { |