From 29865d1ccafc065d07e0de67b196790ed36ab396 Mon Sep 17 00:00:00 2001 From: Christian Babeux Date: Tue, 23 Oct 2012 15:57:55 -0400 Subject: [PATCH] Fix: Fix self-assign warning on struct ustfork_clone_info init Use the proper field designator syntax (C99) to initialize the ustfork_clone_info struct. Signed-off-by: Christian Babeux Signed-off-by: Mathieu Desnoyers --- liblttng-ust-fork/ustfork.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/liblttng-ust-fork/ustfork.c b/liblttng-ust-fork/ustfork.c index af7a6afa..b943e248 100644 --- a/liblttng-ust-fork/ustfork.c +++ b/liblttng-ust-fork/ustfork.c @@ -135,7 +135,7 @@ int clone(int (*fn)(void *), void *child_stack, int flags, void *arg, ...) tls, ctid); } else { /* Creating a real process, we need to intervene. */ - struct ustfork_clone_info info = { fn = fn, arg = arg }; + struct ustfork_clone_info info = { .fn = fn, .arg = arg }; ust_before_fork(&info.sigset); retval = plibc_func(clone_fn, child_stack, flags, &info, -- 2.34.1