commit | a8e75ba37deff962b0ddbc2fb81b96c3515ae7e5 | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Fri Feb 26 05:53:59 2016 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Fri Feb 26 05:53:59 2016 +0000 |
tree | 369cbf183fdd9ca24f8e87030796f52faab10c62 | |
parent | d07d77e399ee26291125bedbe46d03e037e705f2 [diff] | |
parent | 2c6c95348ca9df1727fd7402b3704e0e87cb347e [diff] |
Merge "GCC doesn't like {}, and clang doesn't like {0}..."
diff --git a/libc/bionic/pthread_exit.cpp b/libc/bionic/pthread_exit.cpp index 6b68bb7..afda089 100644 --- a/libc/bionic/pthread_exit.cpp +++ b/libc/bionic/pthread_exit.cpp
@@ -81,7 +81,8 @@ if (thread->alternate_signal_stack != NULL) { // Tell the kernel to stop using the alternate signal stack. - stack_t ss = {}; + stack_t ss; + memset(&ss, 0, sizeof(ss)); ss.ss_flags = SS_DISABLE; sigaltstack(&ss, NULL);