Fix: destroy_pretty_data: move NULL check earlier
authorSimon Marchi <simon.marchi@efficios.com>
Tue, 15 Oct 2019 18:32:00 +0000 (14:32 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 17 Oct 2019 16:13:27 +0000 (12:13 -0400)
commit08276dbe19219eb86ce2149cb3d8b3fcffb02435
treee2204f55b06660f38a4811f54c9adcbdc2da0784
parentc855b1ea85d664c6cbbb8d4d8d246a3afe7dab8a
Fix: destroy_pretty_data: move NULL check earlier

Move the NULL check for pretty before we dereference it.

Reported-by: Coverity
Change-Id: I2e598e734d4503ec17754dabf915d8264edcf4a7
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/2179
Reviewed-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Tested-by: jenkins <jenkins@lttng.org>
src/plugins/text/pretty/pretty.c
This page took 0.023831 seconds and 4 git commands to generate.