]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
osc-context: drop unneeded temporary variable
authorMike Yuan <me@yhndnzj.com>
Sun, 2 Mar 2025 15:00:39 +0000 (16:00 +0100)
committerMike Yuan <me@yhndnzj.com>
Sun, 2 Mar 2025 15:21:59 +0000 (16:21 +0100)
src/shared/osc-context.c

index a0498da9750038cf14df0716a2f7e00cfed85a71..52534ba63d79daa9f3f114ff6610ad00a3d6623b 100644 (file)
@@ -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;
 }