Projects
openEuler:22.03:LTS:LoongArch
systemd
_service:tar_scm_kernel_repo:backport-core-tran...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm_kernel_repo:backport-core-transaction-make-merge_unit_ids-return-non-NULL.patch of Package systemd
From d938e482075db406ae56f9dd37ec0d353b165aac Mon Sep 17 00:00:00 2001 From: Yu Watanabe <watanabe.yu+github@gmail.com> Date: Sat, 18 Mar 2023 12:17:54 +0900 Subject: [PATCH] core/transaction: make merge_unit_ids() return non-NULL on success (cherry picked from commit 999f16514367224cbc50cb3ccc1e4392e43f6811) (cherry picked from commit d084528c49e84354b9a032a1138175bff1198cfa) (cherry picked from commit 8974821f7925d07089c29d619b7996714e833aa5) Conflict:NA Reference:https://github.com/systemd/systemd-stable/commit/d938e482075db406ae56f9dd37ec0d353b165aac --- src/core/transaction.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/transaction.c b/src/core/transaction.c index 043998078c..7c862f35be 100644 --- a/src/core/transaction.c +++ b/src/core/transaction.c @@ -341,6 +341,9 @@ static char* merge_unit_ids(const char* unit_log_field, char * const* pairs) { size += next + 1; } + if (!ans) + return strdup(""); + return TAKE_PTR(ans); } -- 2.33.0
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.