Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Step:15-SP4
slurm.32313
U_10-Initialize-valp-earlier.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File U_10-Initialize-valp-earlier.patch of Package slurm.32313
From: Tim Wickberg <tim@schedmd.com> Date: Tue Nov 28 23:16:40 2023 -0700 Subject: [PATCH 10/28]Initialize *valp earlier. Patch-mainline: Upstream Git-repo: https://github.com/SchedMD/slurm Git-commit: a300223eac1c69994d0b4a1dc4fc554c72b38fcb References: bsc#1218046, bsc#1218050, bsc#1218051, bsc#1218053 Signed-off-by: Egbert Eich <eich@suse.de> Signed-off-by: Egbert Eich <eich@suse.com> --- src/common/pack.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/pack.c b/src/common/pack.c index bbe8d74ca1..7015665ab6 100644 --- a/src/common/pack.c +++ b/src/common/pack.c @@ -1078,6 +1078,7 @@ int unpackstr_array(char ***valp, uint32_t * size_valp, Buf buffer) int i; uint32_t uint32_tmp; + *valp = NULL; safe_unpack32(size_valp, buffer); if (*size_valp > MAX_ARRAY_LEN_MEDIUM) { @@ -1097,8 +1098,7 @@ int unpackstr_array(char ***valp, uint32_t * size_valp, Buf buffer) * NULL terminate array so execle() can detect end of array */ (*valp)[i] = NULL; - } else - *valp = NULL; + } return SLURM_SUCCESS; unpack_error:
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