[Kos-cvs] kos/modules/task _task_uthread.c,1.24,1.25

thomas at kos.enix.org thomas at kos.enix.org
Sun Jan 16 16:10:32 CET 2005


Update of /home/kos/cvs/kos/modules/task
In directory the-doors:/tmp/cvs-serv4316/modules/task

Modified Files:
	_task_uthread.c 
Log Message:
2005-01-16  Thomas Petazzoni  <thomas at crazy.kos.nx>

	* modules/task/_task_uthread.c (copy_user_thread): An other
	initialization bug reported by David Mentré.



Index: _task_uthread.c
===================================================================
RCS file: /home/kos/cvs/kos/modules/task/_task_uthread.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -d -r1.24 -r1.25
--- _task_uthread.c	16 Jan 2005 14:19:28 -0000	1.24
+++ _task_uthread.c	16 Jan 2005 15:10:30 -0000	1.25
@@ -119,6 +119,8 @@
   new = kmalloc(sizeof(struct thread));
   CONCEPTION_ASSERT(new != NULL);
 
+  memset(new, 0x0, sizeof(struct thread));
+
   strzcpy(new->name, t->name, sizeof(new->name));
 
   new->state = STOPPED;



More information about the Kos-cvs mailing list