aboutsummaryrefslogtreecommitdiffstats
path: root/testing/thunderbird/rust-unitialized-field.patch
diff options
context:
space:
mode:
authorJoseph Benden <joe@benden.us>2019-07-18 00:10:48 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2019-08-28 12:33:37 +0000
commit641fc95383be633859e0c4cd1a22b95b3ef10c79 (patch)
tree7cb0a88f781352d32de2fa1ca85b57cb60169182 /testing/thunderbird/rust-unitialized-field.patch
parent76a5e58c61aa5b678248a6eff0937cdf4a924acb (diff)
downloadaports-641fc95383be633859e0c4cd1a22b95b3ef10c79.tar.bz2
aports-641fc95383be633859e0c4cd1a22b95b3ef10c79.tar.xz
testing/thunderbird: new aport
https://www.thunderbird.net/ Thunderbird email client with package for GPG encrypted email (Enigmail). Signed-off-by: Joseph Benden <joe@benden.us>
Diffstat (limited to 'testing/thunderbird/rust-unitialized-field.patch')
-rw-r--r--testing/thunderbird/rust-unitialized-field.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/testing/thunderbird/rust-unitialized-field.patch b/testing/thunderbird/rust-unitialized-field.patch
new file mode 100644
index 0000000000..67ef3a02ab
--- /dev/null
+++ b/testing/thunderbird/rust-unitialized-field.patch
@@ -0,0 +1,19 @@
+--- ./media/audioipc/audioipc/src/cmsg.rs.orig 2018-05-09 22:19:14.748631939 +0200
++++ ./media/audioipc/audioipc/src/cmsg.rs 2018-05-09 22:19:22.961620862 +0200
+@@ -106,11 +106,11 @@ impl ControlMsgBuilder {
+ return Err(Error::NoSpace);
+ }
+
+- let cmsghdr = cmsghdr {
+- cmsg_len: cmsg_len as _,
+- cmsg_level: level,
+- cmsg_type: kind,
+- };
++ use std::mem;
++ let mut cmsghdr: cmsghdr = unsafe { mem::zeroed() };
++ cmsghdr.cmsg_len = cmsg_len as _;
++ cmsghdr.cmsg_level = level;
++ cmsghdr.cmsg_type = kind;
+
+ let cmsghdr = unsafe {
+ slice::from_raw_parts(&cmsghdr as *const _ as *const _, mem::size_of::<cmsghdr>())