From b895e4db7d86af2af0b536b97c3fdf563f348ad1 Mon Sep 17 00:00:00 2001 From: pmf Date: Tue, 31 Jul 2007 19:46:16 +0000 Subject: [PATCH] fix bugs git-svn-id: http://ltt.polymtl.ca/svn@2579 04897980-b3bd-0310-b5e0-8ef037075253 --- ltt/branches/poly/lttv/lttv/state.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ltt/branches/poly/lttv/lttv/state.c b/ltt/branches/poly/lttv/lttv/state.c index 4858b216..a75161f3 100644 --- a/ltt/branches/poly/lttv/lttv/state.c +++ b/ltt/branches/poly/lttv/lttv/state.c @@ -1213,6 +1213,8 @@ static LttvBdevState *bdevstate_new(void) LttvBdevState *retval; retval = g_malloc(sizeof(LttvBdevState)); retval->mode_stack = g_array_new(FALSE, FALSE, sizeof(GQuark)); + + return retval; } static void bdevstate_free(LttvBdevState *bds) @@ -1234,6 +1236,8 @@ static LttvBdevState *bdevstate_copy(LttvBdevState *bds) retval = bdevstate_new(); g_array_insert_vals(retval->mode_stack, 0, bds->mode_stack->data, bds->mode_stack->len); + + return retval; } static void insert_and_copy_bdev_state(gpointer k, gpointer v, gpointer u) -- 2.34.1