harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gshiman...@apache.org
Subject svn commit: r479816 - /harmony/enhanced/drlvm/trunk/vm/port/src/misc/win/sysinfo.c
Date Tue, 28 Nov 2006 00:09:54 GMT
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);



Mime
View raw message