summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorjaortega <jaortega>2000-12-23 02:50:41 +0000
committerjaortega <jaortega>2000-12-23 02:50:41 +0000
commit182bc15b8bcfd0823c8d68457d03b467861d1885 (patch)
tree3d9f853a8c459bec2b06c3bd8ac9efe044e216db
parentf9c1896e70bb78487f5e21136d8a6584e2653b47 (diff)
downloadmdk-182bc15b8bcfd0823c8d68457d03b467861d1885.tar.gz
mdk-182bc15b8bcfd0823c8d68457d03b467861d1885.tar.bz2
(mix_vm_clock_new) proper initialisation
-rw-r--r--mixlib/mix_vm_clock.c6
1 files changed, 4 insertions, 2 deletions
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 <jaortega@acm.org>
*
@@ -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