diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2006-11-13 22:00:16 +0000 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2006-11-13 22:00:16 +0000 |
commit | a8f45d5743c0d503cfd394ba80b5a64fe5407a73 (patch) | |
tree | 2a07a4de96943b731fb9c93727c0cc9f3c0f40c2 /Process.c | |
parent | 9076b9edebb10240f8abae1f0476deeb271dac63 (diff) |
Sanity cleanup.
Diffstat (limited to 'Process.c')
-rw-r--r-- | Process.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; } |