diff options
author | Dimitri John Ledkov <xnox@ubuntu.com> | 2019-01-15 18:40:20 +0000 |
---|---|---|
committer | Dimitri John Ledkov <xnox@ubuntu.com> | 2019-01-15 18:41:08 +0000 |
commit | ada795fa8e7b1e27c134fe7d5aedf4517cd082f5 (patch) | |
tree | 5717f98c75f6b1a9fbae50b88c35f13d07993226 /debian/patches/0011-policy.c-Fix-for-compiler-error.patch | |
parent | 88ee7cfa1e00aabcfc8f48b57f4b226e7b5c2158 (diff) |
New upstream release
* New upstream release
* Cherrypick patches from master up to 757e55435997e355ee9b03e5d913b5496a3c39a8.
Diffstat (limited to 'debian/patches/0011-policy.c-Fix-for-compiler-error.patch')
-rw-r--r-- | debian/patches/0011-policy.c-Fix-for-compiler-error.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/debian/patches/0011-policy.c-Fix-for-compiler-error.patch b/debian/patches/0011-policy.c-Fix-for-compiler-error.patch new file mode 100644 index 00000000..08301935 --- /dev/null +++ b/debian/patches/0011-policy.c-Fix-for-compiler-error.patch @@ -0,0 +1,36 @@ +From 757e55435997e355ee9b03e5d913b5496a3c39a8 Mon Sep 17 00:00:00 2001 +From: Mariusz Tkaczyk <mariusz.tkaczyk@intel.com> +Date: Tue, 11 Dec 2018 15:04:07 +0100 +Subject: [PATCH 11/11] policy.c: Fix for compiler error +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +After cd72f9d(policy: support devices with multiple paths.) compilation +on old compilers fails because "āpā may be used uninitialized +in this function". + +Initialize it with NULL to prevent this. + +Signed-off-by: Mariusz Tkaczyk <mariusz.tkaczyk@intel.com> +Signed-off-by: Jes Sorensen <jsorensen@fb.com> +--- + policy.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/policy.c b/policy.c +index e3a0671f..3c53bd35 100644 +--- a/policy.c ++++ b/policy.c +@@ -268,7 +268,7 @@ static int pol_match(struct rule *rule, char **paths, char *type, char **part) + + for (; rule; rule = rule->next) { + if (rule->name == rule_path) { +- char *p; ++ char *p = NULL; + int i; + if (pathok == 0) + pathok = -1; +-- +2.19.1 + |