From a8f45d5743c0d503cfd394ba80b5a64fe5407a73 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Mon, 13 Nov 2006 22:00:16 +0000 Subject: Sanity cleanup. --- Process.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Process.c b/Process.c index 5fc3e835..9dba8a3a 100644 --- a/Process.c +++ b/Process.c @@ -126,6 +126,7 @@ Process* Process_new(struct ProcessList_ *pl) { Object_setClass(this, PROCESS_CLASS); ((Object*)this)->display = Process_display; ((Object*)this)->delete = Process_delete; + this->pid = 0; this->pl = pl; this->tag = false; this->updated = false; @@ -141,6 +142,7 @@ Process* Process_clone(Process* this) { Process* clone = malloc(sizeof(Process)); memcpy(clone, this, sizeof(Process)); this->comm = NULL; + this->pid = 0; return clone; } -- cgit v1.2.3