Two small fixes (#41506)
This commit is contained in:
+1
-1
@@ -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'],
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user