mirror of
https://github.com/samba-team/samba.git
synced 2025-03-27 22:50:26 +03:00
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>
This commit is contained in:
parent
06978c6541
commit
235aa67544
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user