Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.2:Update
makedumpfile
makedumpfile-simplify-close_dump_bitmap-logic.p...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File makedumpfile-simplify-close_dump_bitmap-logic.patch of Package makedumpfile
From: Martin Wilck <mwilck@suse.de> Date: Wed, 10 Aug 2016 14:56:58 +0200 Subject: close_dump_bitmap: simplify logic References: bsc#992885 The boolean expression replicates the logic of open_dump_bitmap(). It's simpler and less error-prone to simply check if fd_bitmap is valid. Signed-off-by: Martin Wilck <mwilck@suse.de> Acked-by: Petr Tesarik <ptesarik@suse.com> --- makedumpfile.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) --- a/makedumpfile.c +++ b/makedumpfile.c @@ -8595,8 +8595,7 @@ close_dump_file(void) void close_dump_bitmap(void) { - if (!info->working_dir && !info->flag_reassemble && !info->flag_refiltering - && !info->flag_sadump && !info->flag_mem_usage) + if (!info->fd_bitmap) return; if ((info->fd_bitmap = close(info->fd_bitmap)) < 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