From 41c0e1215fca74d314f7b13867d2b1f4cf03aac1 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 6 Jul 2012 21:14:06 +0000 Subject: Fix uninitialized values. git-svn-id: http://svn.drobilla.net/sord/trunk@227 3d64ff67-21c5-427c-a301-fe4f08042e5a --- src/sord.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/sord.c b/src/sord.c index 5d7c075..56c9d05 100644 --- a/src/sord.c +++ b/src/sord.c @@ -182,10 +182,12 @@ SordWorld* sord_world_new(void) { SordWorld* world = (SordWorld*)malloc(sizeof(SordWorld)); - world->names = zix_hash_new(zix_string_hash, zix_string_equal); - world->langs = zix_hash_new(zix_string_hash, zix_string_equal); - world->literals = zix_hash_new(sord_literal_hash, sord_literal_equal); - world->n_nodes = 0; + world->names = zix_hash_new(zix_string_hash, zix_string_equal); + world->langs = zix_hash_new(zix_string_hash, zix_string_equal); + world->literals = zix_hash_new(sord_literal_hash, sord_literal_equal); + world->n_nodes = 0; + world->error_sink = NULL; + world->error_handle = NULL; return world; } -- cgit v1.2.1