From: Christian Babeux Date: Tue, 23 Oct 2012 19:57:55 +0000 (-0400) Subject: Fix: Fix self-assign warning on struct ustfork_clone_info init X-Git-Tag: v2.1.0-rc2~26 X-Git-Url: http://git.liburcu.org/?a=commitdiff_plain;h=3fd2b913de202024760fc6d804510cd61760198f;hp=1c7b4a9b7cc83f750a7d58d5e2f4894a2559f583;p=lttng-ust.git 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 --- diff --git a/liblttng-ust-fork/ustfork.c b/liblttng-ust-fork/ustfork.c index 13f77cfc..34f674c3 100644 --- a/liblttng-ust-fork/ustfork.c +++ b/liblttng-ust-fork/ustfork.c @@ -139,7 +139,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,