From: pmf Date: Tue, 31 Jul 2007 19:46:16 +0000 (+0000) Subject: fix bug in blkdev state restore X-Git-Tag: v0.12.20~911 X-Git-Url: http://git.lttng.org./?a=commitdiff_plain;h=521a0efa430162f3b78b5cd569e730ed4c60bfc6;hp=fb93b1517d653b26a7a49cac5ab76b67f269d32a;p=lttv.git fix bug in blkdev state restore git-svn-id: http://ltt.polymtl.ca/svn@2578 04897980-b3bd-0310-b5e0-8ef037075253 --- diff --git a/ltt/branches/poly/lttv/lttv/state.c b/ltt/branches/poly/lttv/lttv/state.c index 405c6e70..4858b216 100644 --- a/ltt/branches/poly/lttv/lttv/state.c +++ b/ltt/branches/poly/lttv/lttv/state.c @@ -1437,7 +1437,7 @@ static void state_restore(LttvTraceState *self, LttvAttribute *container) type = lttv_attribute_get_by_name(container, LTTV_STATE_RESOURCE_BLKDEVS, &value); g_assert(type == LTTV_POINTER); lttv_state_free_blkdev_hashtable(self->bdev_states); - self->bdev_states = lttv_state_copy_blkdev_hashtable(self->bdev_states); + self->bdev_states = lttv_state_copy_blkdev_hashtable(*(value.v_pointer)); for(i = 0 ; i < nb_tracefile ; i++) { tfcs =