[Fontconfig] fontconfig: Branch 'main'
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon Sep 11 08:53:40 UTC 2023
src/fccompat.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 70e2a9a1891cae434a3e2808952c3be400f06a58
Author: Akira TAGOH <akira at tagoh.org>
Date: Mon Sep 11 17:34:23 2023 +0900
Fix an error of "initializer element is not constant"
Patch from Andreas Falkenhahn
Fixes https://gitlab.freedesktop.org/fontconfig/fontconfig/-/issues/380
diff --git a/src/fccompat.c b/src/fccompat.c
index 65ac84c..798de63 100644
--- a/src/fccompat.c
+++ b/src/fccompat.c
@@ -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;
More information about the Fontconfig
mailing list