You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by gs...@apache.org on 2006/11/28 01:09:54 UTC
svn commit: r479816 -
/harmony/enhanced/drlvm/trunk/vm/port/src/misc/win/sysinfo.c
Author: gshimansky
Date: Mon Nov 27 16:09:53 2006
New Revision: 479816
URL: http://svn.apache.org/viewvc?view=rev&rev=479816
Log:
Applied HARMONY-2331 [drlvm][port] unitialized name_buf in port_OS_name_version()
Tests passed on windows xp, ubuntu and suse 10 x86_64
Modified:
harmony/enhanced/drlvm/trunk/vm/port/src/misc/win/sysinfo.c
Modified: harmony/enhanced/drlvm/trunk/vm/port/src/misc/win/sysinfo.c
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/port/src/misc/win/sysinfo.c?view=diff&rev=479816&r1=479815&r2=479816
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/port/src/misc/win/sysinfo.c (original)
+++ harmony/enhanced/drlvm/trunk/vm/port/src/misc/win/sysinfo.c Mon Nov 27 16:09:53 2006
@@ -32,7 +32,7 @@
APR_DECLARE(apr_status_t) port_OS_name_version(char** os_name, char** os_ver,
apr_pool_t* pool){
- char* name_buf;
+ char* name_buf = NULL;
char* ver_buf;
OSVERSIONINFO vi;
vi.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);