commit | d07d77e399ee26291125bedbe46d03e037e705f2 | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Fri Feb 26 04:59:51 2016 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Fri Feb 26 04:59:51 2016 +0000 |
tree | 03b876b0ad6d5e32fe446147c8e2d4a359af61a8 | |
parent | b4b98e750f81322f1065194e1618c5a965224f95 [diff] | |
parent | 6bd5cf60fa1ddb9474f8cc7b3b4d25179f5a5693 [diff] |
Merge "Fix a structure initialisation in pthread_exit()."
diff --git a/libc/bionic/pthread_exit.cpp b/libc/bionic/pthread_exit.cpp index ceda931..6b68bb7 100644 --- a/libc/bionic/pthread_exit.cpp +++ b/libc/bionic/pthread_exit.cpp
@@ -81,8 +81,7 @@ if (thread->alternate_signal_stack != NULL) { // Tell the kernel to stop using the alternate signal stack. - stack_t ss; - ss.ss_sp = NULL; + stack_t ss = {}; ss.ss_flags = SS_DISABLE; sigaltstack(&ss, NULL);