Hi, This patch fixes an uninitialised variable in TASK_Create which caused a few warnings in Valgrind. Patch by Saulius Krasackas. Found by Valgrind. Changelog: Saulius Krasackas: fix unintialised variable in TASK_Create
Index: wine/loader/task.c =================================================================== RCS file: /home/wine/wine/loader/task.c,v retrieving revision 1.134 diff -u -r1.134 task.c --- wine/loader/task.c 20 May 2003 19:21:44 -0000 1.134 +++ wine/loader/task.c 30 Jun 2003 20:07:23 -0000 @@ -262,6 +262,8 @@ FARPROC16 proc; HMODULE16 hModule = pModule ? pModule->self : 0; + name[0] = '\0'; + /* Allocate the task structure */ hTask = GlobalAlloc16( GMEM_FIXED | GMEM_ZEROINIT, sizeof(TDB) ); @@ -349,7 +351,8 @@ /* Get the compatibility flags */ - pTask->compat_flags = GetProfileIntA( "Compatibility", name, 0 ); + if (name[0]) + pTask->compat_flags = GetProfileIntA( "Compatibility", name, 0 ); /* Allocate a code segment alias for the TDB */