From: Mike Yuan Date: Sun, 2 Mar 2025 15:00:39 +0000 (+0100) Subject: osc-context: drop unneeded temporary variable X-Git-Tag: v258-rc1~1206^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cada508fd82586e6eb09d8ede142ef7e3247343f;p=thirdparty%2Fsystemd.git osc-context: drop unneeded temporary variable --- diff --git a/src/shared/osc-context.c b/src/shared/osc-context.c index a0498da9750..52534ba63d7 100644 --- a/src/shared/osc-context.c +++ b/src/shared/osc-context.c @@ -141,15 +141,13 @@ static int osc_context_intro(char **ret_seq, sd_id128_t *ret_context_id) { } else osc_context_default_id(&id); - _cleanup_free_ char *seq = NULL; - r = osc_context_intro_raw(id, &seq); + r = osc_context_intro_raw(id, ret_seq); if (r < 0) return r; if (ret_context_id) *ret_context_id = id; - *ret_seq = TAKE_PTR(seq); return 0; }