Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(19)

Unified Diff: third_party/libxml/src/testThreads.c

Issue 1193533007: Upgrade to libxml 2.9.2 and libxslt 1.1.28 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: no iconv Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/libxml/src/testSchemas.c ('k') | third_party/libxml/src/testThreadsWin32.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,
« no previous file with comments | « third_party/libxml/src/testSchemas.c ('k') | third_party/libxml/src/testThreadsWin32.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698