Fix an error of "initializer element is not constant"
Patch from Andreas Falkenhahn Fixes https://gitlab.freedesktop.org/fontconfig/fontconfig/-/issues/380
This commit is contained in:
parent
e0eb855462
commit
70e2a9a189
|
@ -228,8 +228,9 @@ FcRandom(void)
|
|||
#elif HAVE_LRAND48
|
||||
result = lrand48 ();
|
||||
#elif HAVE_RAND_R
|
||||
static unsigned int seed = time (NULL);
|
||||
static unsigned int seed;
|
||||
|
||||
seed = time (NULL);
|
||||
result = rand_r (&seed);
|
||||
#elif HAVE_RAND
|
||||
static FcBool initialized = FcFalse;
|
||||
|
|
Loading…
Reference in New Issue