From 182bc15b8bcfd0823c8d68457d03b467861d1885 Mon Sep 17 00:00:00 2001 From: jaortega Date: Sat, 23 Dec 2000 02:50:41 +0000 Subject: (mix_vm_clock_new) proper initialisation --- mixlib/mix_vm_clock.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'mixlib') diff --git a/mixlib/mix_vm_clock.c b/mixlib/mix_vm_clock.c index c8d1f67..0b1f3da 100644 --- a/mixlib/mix_vm_clock.c +++ b/mixlib/mix_vm_clock.c @@ -1,7 +1,7 @@ /* -*-c-*- -------------- mix_vm_clock.c : * Implementation of the functions declared in mix_vm_clock.h * ------------------------------------------------------------------ - * Last change: Time-stamp: "00/12/22 02:19:30 jose" + * Last change: Time-stamp: "00/12/23 03:35:50 jose" * ------------------------------------------------------------------ * Copyright (C) 2000 jose antonio ortega ruiz * @@ -40,7 +40,9 @@ static const mix_time_t exec_times_[] = { mix_vm_clock_t * mix_vm_clock_new () { - return g_new (mix_vm_clock_t, 1); + mix_vm_clock_t *result = g_new (mix_vm_clock_t, 1); + result->time = 0; + return result; } void -- cgit v1.2.3