Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP7:Update
lvm2.19948
bug-1181319_03-lvmlockctl-use-inline-initilizer...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File bug-1181319_03-lvmlockctl-use-inline-initilizers.patch of Package lvm2.19948
From 91d16fc049ba2034708aa6a0bab5f548040dfd3b Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac <zkabelac@redhat.com> Date: Wed, 29 Jan 2020 15:47:40 +0100 Subject: [PATCH] lvmlockctl: use inline initilizers clang: ensure r_name[] is in all possible paths defined. --- daemons/lvmlockd/lvmlockctl.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/daemons/lvmlockd/lvmlockctl.c b/daemons/lvmlockd/lvmlockctl.c index 40432b5519d6..c2a998c8c4a1 100644 --- a/daemons/lvmlockd/lvmlockctl.c +++ b/daemons/lvmlockd/lvmlockctl.c @@ -280,13 +280,12 @@ static void format_info_line(char *line, char *r_name, char *r_type) static void format_info(void) { - char line[MAX_LINE]; - char r_name[MAX_NAME+1]; - char r_type[MAX_NAME+1]; + char line[MAX_LINE] = { 0 }; + char r_name[MAX_NAME+1] = { 0 }; + char r_type[MAX_NAME+1] = { 0 }; int i, j; j = 0; - memset(line, 0, sizeof(line)); for (i = 0; i < dump_len; i++) { line[j++] = dump_buf[i]; -- 1.8.3.1
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