Fix: Fix self-assign warning on struct ustfork_clone_info init ust/callsite
authorChristian Babeux <christian.babeux@efficios.com>
Tue, 23 Oct 2012 19:57:55 +0000 (15:57 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 23 Oct 2012 19:57:55 +0000 (15:57 -0400)
Use the proper field designator syntax (C99) to initialize the
ustfork_clone_info struct.

Signed-off-by: Christian Babeux <christian.babeux@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
liblttng-ust-fork/ustfork.c

index 13f77cfc47ba9e24207080d00c7f72763680f2b0..34f674c3c765a13d3dadc3908f765d0caada8d0f 100644 (file)
@@ -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,
This page took 0.025258 seconds and 4 git commands to generate.