This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] trivial fix in get_clockfreq for powerpc


2006-01-05  Tom Gall  <tom_gall@vnet.ibm.com>

	* sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq): 
	Initialize timebase_freq. 


diff -uNr libc.orig/sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c libc/sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c
--- libc.orig/sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c	2006-01-06 22:22:34.000000000 +0000
+++ libc/sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c	2006-01-06 22:23:51.000000000 +0000
@@ -32,7 +32,7 @@
      contains at least one line like:
      timebase        : 33333333
      We search for this line and convert the number into an integer.  */
-  static hp_timing_t timebase_freq;
+  static hp_timing_t timebase_freq = 0L;
   hp_timing_t result = 0L;
 
   /* If this function was called before, we know the result.  */


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]