Index: third_party/libxml/src/testThreads.c |
diff --git a/third_party/libxml/src/testThreads.c b/third_party/libxml/src/testThreads.c |
index b43cbd0e963e5cf81cf4d1fd03bd80061f27e443..bff53912ecbf93689532256dc8ba28ecd7b991a5 100644 |
--- a/third_party/libxml/src/testThreads.c |
+++ b/third_party/libxml/src/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, |