Two small fixes (#41506)

This commit is contained in:
Christian Brauner
2026-04-07 09:11:07 +02:00
committed by GitHub
2 changed files with 3 additions and 6 deletions
+1 -1
View File
@@ -2998,7 +2998,7 @@ if spatch.found()
foreach dir : coccinelle_src_dirs
if dir not in coccinelle_exclude
test(
'coccinelle-@0@'.format(fs.name(dir)),
'coccinelle-@0@'.format(fs.name(dir.strip('/'))),
check_coccinelle_sh,
args : [meson.project_source_root() / dir,
meson.project_source_root() / 'coccinelle'],
+2 -5
View File
@@ -3100,11 +3100,8 @@ _public_ int sd_varlink_set_sentinel(sd_varlink *v, const char *error_id) {
-EUCLEAN);
char *s = NULL;
if (error_id) {
s = strdup(error_id);
if (!s)
return log_oom_debug();
}
if (strdup_to(&s, error_id) < 0)
return log_oom_debug();
if (v->sentinel != POINTER_MAX)
free(v->sentinel);