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
+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);