]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Give static variable function scope.
authorFlorian Krohm <florian@eich-krohm.de>
Mon, 11 Aug 2014 15:21:44 +0000 (15:21 +0000)
committerFlorian Krohm <florian@eich-krohm.de>
Mon, 11 Aug 2014 15:21:44 +0000 (15:21 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14260

coregrind/m_libcbase.c

index abacd712d6f9fc2a66c1706f6bc2b32598d81de3..0159510bec379d062a4c2d6453973894e2158201 100644 (file)
@@ -935,10 +935,10 @@ void VG_(ssort)( void* base, SizeT nmemb, SizeT size,
 // is NULL, it uses its own seed, which starts at zero.  If pSeed is
 // non-NULL, it uses and updates whatever pSeed points at.
 
-static UInt seed = 0;
-
 UInt VG_(random)( /*MOD*/UInt* pSeed )
 {
+   static UInt seed = 0;
+
    if (pSeed == NULL) 
       pSeed = &seed;