aboutsummaryrefslogtreecommitdiffstats
path: root/main/mtools/fix-uninitialized.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2021-06-07 14:43:54 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2021-06-07 14:47:07 +0000
commit880f1c5ddda537a494e3c34574bc10e58e4f1ff9 (patch)
tree17fcbefbb8f7be8bf907da196712adef0053ff55 /main/mtools/fix-uninitialized.patch
parent7d5ca15cc476de1f5258a5024e96151060afd57c (diff)
downloadaports-880f1c5ddda537a494e3c34574bc10e58e4f1ff9.tar.gz
aports-880f1c5ddda537a494e3c34574bc10e58e4f1ff9.tar.bz2
aports-880f1c5ddda537a494e3c34574bc10e58e4f1ff9.tar.xz
main/mtools: fix segfault, enable -dbg
Fix is from upstream: https://lists.gnu.org/archive/html/info-mtools/2021-06/msg00008.html
Diffstat (limited to 'main/mtools/fix-uninitialized.patch')
-rw-r--r--main/mtools/fix-uninitialized.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/main/mtools/fix-uninitialized.patch b/main/mtools/fix-uninitialized.patch
new file mode 100644
index 0000000000..5984d5da3a
--- /dev/null
+++ b/main/mtools/fix-uninitialized.patch
@@ -0,0 +1,13 @@
+diff --git a/init.c b/init.c
+index af154b7..4040018 100644
+--- a/init.c
++++ b/init.c
+@@ -156,7 +156,7 @@ static Stream_t *try_device(struct device *dev,
+ #endif
+
+ for(retry_write=0; retry_write<2; retry_write++) {
+- Stream_t *Stream;
++ Stream_t *Stream = NULL;
+ int r;
+ int geomFailure=0;
+ if(retry_write)