diff options
author | Matteo Bernardini | 2020-02-29 10:21:37 +0100 |
---|---|---|
committer | Matteo Bernardini | 2020-02-29 10:21:37 +0100 |
commit | 37498e325fe958c6948fae9ee70e16ec9427d9a4 (patch) | |
tree | 6a9ede00269c6dd697d95d5c43739ec0741dc379 /graphics/simple-scan/libwebpmux.patch | |
parent | e672baf11d590fdc9d8bd90c2cd50fc6232efd4e (diff) | |
download | slackbuilds-current-20200229.1.tar.gz |
20200229.1 global branch merge.current-20200229.1
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'graphics/simple-scan/libwebpmux.patch')
-rw-r--r-- | graphics/simple-scan/libwebpmux.patch | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/graphics/simple-scan/libwebpmux.patch b/graphics/simple-scan/libwebpmux.patch new file mode 100644 index 0000000000..51d17eb7dd --- /dev/null +++ b/graphics/simple-scan/libwebpmux.patch @@ -0,0 +1,38 @@ +From 47d3532459863e3b0bc1c7fd3a200f612863c814 Mon Sep 17 00:00:00 2001 +From: Rico Tzschichholz <ricotz@ubuntu.com> +Date: Sat, 14 Sep 2019 20:03:47 +0200 +Subject: [PATCH] libwepmix: Fix use of possibly unassigned local variable + 'data' + +--- + src/libwebpmux.vapi | 8 ++------ + 1 file changed, 2 insertions(+), 6 deletions(-) + +diff --git a/src/libwebpmux.vapi b/src/libwebpmux.vapi +index f2461a2..42d2886 100644 +--- a/src/libwebpmux.vapi ++++ b/src/libwebpmux.vapi +@@ -61,9 +61,7 @@ namespace WebP + [CCode (cname = "vala_set_image")] + public MuxError set_image (uint8[] bitstream, bool copy_data) + { +- Data data; +- data.bytes = bitstream; +- data.size = bitstream.length; ++ Data data = { bitstream, bitstream.length }; + return _set_image (data, copy_data); + } + +@@ -89,9 +87,7 @@ namespace WebP + public MuxError set_chunk (string fourcc, uint8[] chunk_data, bool copy_data) + requires (fourcc.length == 4) + { +- Data data; +- data.bytes = chunk_data; +- data.size = chunk_data.length; ++ Data data = { chunk_data ,chunk_data.length }; + return _set_chunk ((uchar[]) fourcc, data, copy_data); + } + +-- +2.22.0 |