Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Step:15-SP4
mdadm.22955
0012-policy.c-Fix-for-compiler-error.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0012-policy.c-Fix-for-compiler-error.patch of Package mdadm.22955
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] policy.c: Fix for compiler error Git-commit: 757e55435997e355ee9b03e5d913b5496a3c39a8 Patch-mainline: mdadm-4.1+ References: jsc#SLE-10078, jsc#SLE-9348 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> Signed-off-by: Coly Li <colyli@suse.de> --- policy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/policy.c b/policy.c index e3a0671..3c53bd3 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.25.0
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor