From 8ca489daad37dcf6e4211e248438fe939bdd17c7 Mon Sep 17 00:00:00 2001 From: Matthieu Herrb Date: Tue, 10 Jun 2008 22:01:32 +0000 Subject: - actually zero the memory returned by realloc(). - set the return value for the pthread_once() stub. --- lib/libX11/src/UIThrStubs.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/libX11') diff --git a/lib/libX11/src/UIThrStubs.c b/lib/libX11/src/UIThrStubs.c index 7f54aa9fe..bceb4c45e 100644 --- a/lib/libX11/src/UIThrStubs.c +++ b/lib/libX11/src/UIThrStubs.c @@ -177,6 +177,7 @@ _Xthr_once_stub_(void *id, void (*routine)(void)) routine(); done++; } + return 0; } #include @@ -199,8 +200,8 @@ _Xthr_key_create_stub_(unsigned int *key, void (*destructor)(void *)) free(_Xthr_keys_); return ENOMEM; } - for (i =_Xthr_last_key_; i