summaryrefslogtreecommitdiff
path: root/libgpo/gpo_ini.c
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-04-20 19:15:32 +0200
committerGünther Deschner <gd@samba.org>2009-04-20 23:16:17 +0200
commit7010365e9ac5f9a285b5ad7b660a3c49ff0e8c17 (patch)
treed4fbbd19ae72c17b16d7185bc7a9a8fb247b3314 /libgpo/gpo_ini.c
parent171a361375e1cd76a80253d67e4e34a139bb5570 (diff)
downloadsamba-7010365e9ac5f9a285b5ad7b660a3c49ff0e8c17.tar.gz
libgpo: Fix some minor issues.
Guenther Signed-off-by: Günther Deschner <gd@samba.org>
Diffstat (limited to 'libgpo/gpo_ini.c')
-rw-r--r--libgpo/gpo_ini.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libgpo/gpo_ini.c b/libgpo/gpo_ini.c
index af2b88c0b8a..674c741bbac 100644
--- a/libgpo/gpo_ini.c
+++ b/libgpo/gpo_ini.c
@@ -42,6 +42,7 @@ static bool store_keyval_pair(const char *key, const char *value, void *ctx_ptr)
{
struct gp_inifile_context *ctx = (struct gp_inifile_context *) ctx_ptr;
ctx->data = talloc_realloc(ctx, ctx->data, struct keyval_pair *, ctx->keyval_count+1);
+ ctx->data[ctx->keyval_count] = talloc_zero(ctx, struct keyval_pair);
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->keyval_count++;