Projects
openEuler:22.03:LTS:LoongArch
systemd
_service:tar_scm_kernel_repo:backport-list-fix-...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm_kernel_repo:backport-list-fix-double-evaluation.patch of Package systemd
From 42094f7b796cdf4df467ba31529962c643a08cae Mon Sep 17 00:00:00 2001 From: Yu Watanabe <watanabe.yu+github@gmail.com> Date: Thu, 20 Apr 2023 04:04:03 +0900 Subject: [PATCH] list: fix double evaluation (cherry picked from commit 24a5370bbc1b52fee52d8891f66af13e9d77d799) (cherry picked from commit 7b437659b15c0cd87b5720b3570dcd5e5ad9abca) (cherry picked from commit 73f7c65d34d507c75b3044e2205d1393e43a7534) Conflict:code context adaptation Reference:https://github.com/systemd/systemd-stable/commit/42094f7b796cdf4df467ba31529962c643a08cae --- src/basic/list.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/basic/list.h b/src/basic/list.h index 58e83a6cb2..0dba7648e6 100644 --- a/src/basic/list.h +++ b/src/basic/list.h @@ -133,8 +133,11 @@ } \ } while (false) -#define LIST_JUST_US(name,item) \ - (!(item)->name##_prev && !(item)->name##_next) \ +#define LIST_JUST_US(name, item) \ + ({ \ + typeof(*(item)) *_item = (item); \ + !(_item)->name##_prev && !(_item)->name##_next; \ + }) #define LIST_FOREACH(name,i,head) \ for ((i) = (head); (i); (i) = (i)->name##_next) -- 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
.