diff options
author | Andrew W. Nosenko <andrew.w.nosenko@gmail.com> | 2010-11-15 13:00:29 +0100 |
---|---|---|
committer | Daniel Veillard <veillard@redhat.com> | 2010-11-15 13:00:29 +0100 |
commit | d794a84a9e147498069b4c582d57b899bf068187 (patch) | |
tree | 6d3db83962a09520edaa62cf50dfea8021d81546 /testThreads.c | |
parent | 0cbeb50ee03ce582a0c979c70d8fbf030e270c37 (diff) | |
download | libxml2-d794a84a9e147498069b4c582d57b899bf068187.tar.gz |
599241 fix an initialization problem on Win64
as the thread_t is not an integral datatype on that platform
Diffstat (limited to 'testThreads.c')
-rw-r--r-- | testThreads.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/testThreads.c b/testThreads.c index b43cbd0e..bff53912 100644 --- a/testThreads.c +++ b/testThreads.c @@ -105,10 +105,8 @@ main(void) for (repeat = 0;repeat < 500;repeat++) { xmlLoadCatalog(catalog); - for (i = 0; i < num_threads; i++) { - results[i] = NULL; - tid[i] = (pthread_t) -1; - } + memset(results, 0, sizeof(*results)*num_threads); + memset(tid, 0xff, sizeof(*tid)*num_threads); for (i = 0; i < num_threads; i++) { ret = pthread_create(&tid[i], NULL, thread_specific_data, |