[pypy-svn] r47070 - pypy/dist/pypy/module/rctime

arigo at codespeak.net arigo at codespeak.net
Mon Oct 1 13:37:41 CEST 2007


Author: arigo
Date: Mon Oct  1 13:37:40 2007
New Revision: 47070

Modified:
   pypy/dist/pypy/module/rctime/interp_time.py
Log:
genc doesn't like the uninitialized content of this global structure.
For now let's simply initialize it with zeroes.


Modified: pypy/dist/pypy/module/rctime/interp_time.py
==============================================================================
--- pypy/dist/pypy/module/rctime/interp_time.py	(original)
+++ pypy/dist/pypy/module/rctime/interp_time.py	Mon Oct  1 13:37:40 2007
@@ -60,7 +60,7 @@
 time_t = cConfig.time_t
 size_t = cConfig.size_t
 tm = cConfig.tm
-glob_buf = lltype.malloc(tm, flavor='raw')
+glob_buf = lltype.malloc(tm, flavor='raw', zero=True)
 
 if cConfig.has_gettimeofday:
     c_gettimeofday = external('gettimeofday', [rffi.VOIDP, rffi.VOIDP], rffi.INT)



More information about the Pypy-commit mailing list