From: Jérémie Galarneau Date: Wed, 11 Sep 2019 14:54:48 +0000 (-0400) Subject: ctf: silence bogus warnings in create_relative_field_ref() X-Git-Tag: v2.0.0-rc1~138 X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=ce706c971a58cb5cbaa0eec0c4837708de2a3254;hp=ce706c971a58cb5cbaa0eec0c4837708de2a3254;p=babeltrace.git ctf: silence bogus warnings in create_relative_field_ref() gcc 9.1.0 warns that struct_fc and var_fc may be used uninitialized. The code flow doesn't allow this to happen, but this warning is annoying/scary and easily fixed by initializing both variables to NULL. Signed-off-by: Jérémie Galarneau Change-Id: I554affb70275f60eff08134f80b33bc4cefbc91f Reviewed-on: https://review.lttng.org/c/babeltrace/+/2027 Reviewed-by: Simon Marchi Tested-by: jenkins ---