{"thread":{"id":"33645","subject":"[PATCH 2/6] compat/win32/pthread.c: Fix a sparse warning","startedAt":"2013-04-27T19:16:28Z","lastAt":"2013-04-27T19:16:28Z","messageCount":1,"participants":["Ramsay Jones"],"isPatch":true,"patchVersion":1,"patchTotal":6},"messages":[{"id":"215729","messageId":"517C240C.80803@ramsay1.demon.co.uk","threadId":"33645","inReplyTo":null,"subject":"[PATCH 2/6] compat/win32/pthread.c: Fix a sparse warning","fromName":"Ramsay Jones","fromEmail":"ramsay@ramsay1.demon.co.uk","sentAt":"2013-04-27T19:16:28Z","receivedAt":"2013-04-27T19:16:28Z","isPatch":true,"sender":{"key":"ramsay@ramsayjones.plus.com","avatar":"https://avatars.githubusercontent.com/u/33702710?v=4"},"body":"\nSparse issues a 'Using plain integer as NULL pointer' warning when\ninitializing an pthread_t structure with an '{ 0 }' initializer.\nThe first field of the pthread_t structure has type HANDLE (void *),\nso in order to suppress the warning, we replace the initializer\nexpression with '{ NULL }'.\n\nSigned-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>\n---\n compat/win32/pthread.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)\n\ndiff --git a/compat/win32/pthread.c b/compat/win32/pthread.c\nindex 010e875..e18f5c6 100644\n--- a/compat/win32/pthread.c\n+++ b/compat/win32/pthread.c\n@@ -52,7 +52,7 @@ int win32_pthread_join(pthread_t *thread, void **value_ptr)\n \n pthread_t pthread_self(void)\n {\n-\tpthread_t t = { 0 };\n+\tpthread_t t = { NULL };\n \tt.tid = GetCurrentThreadId();\n \treturn t;\n }\n-- \n1.8.2\n"}]}