From b32360d9877ce879eb7efcd5d5febf2a03e689cd Mon Sep 17 00:00:00 2001 From: mquinson Date: Wed, 9 Sep 2009 21:45:42 +0000 Subject: [PATCH] Move a DEBUG request to avoid printing uninitialized variables git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@6662 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- src/surf/cpu_ti.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/surf/cpu_ti.c b/src/surf/cpu_ti.c index 54e8834c56..e8839ddbd4 100644 --- a/src/surf/cpu_ti.c +++ b/src/surf/cpu_ti.c @@ -597,8 +597,8 @@ static void update_actions_state(double now, double delta) surf_action_cpu_ti_t action; while ((xbt_heap_size(action_heap) > 0) && (xbt_heap_maxkey(action_heap) <= now)) { - DEBUG1("Action %p: finish", action); action = xbt_heap_pop(action_heap); + DEBUG1("Action %p: finish", action); GENERIC_ACTION(action).finish = surf_get_clock(); /* set the remains to 0 due to precision problems when updating the remaining amount */ GENERIC_ACTION(action).remains = 0; -- 2.20.1