Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP2:Update
slurm
U_10-Initialize-valp-earlier.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File U_10-Initialize-valp-earlier.patch of Package slurm
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: 9f63e9752f72e44aff1922c1123ff4f0d2288cd9 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 1074086092..d827e903ee 100644 --- a/src/common/pack.c +++ b/src/common/pack.c @@ -1103,6 +1103,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) { @@ -1122,8 +1123,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