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)
committerFrancis Deslauriers <francis.deslauriers@efficios.com>
Tue, 15 Oct 2019 19:12:08 +0000 (15:12 -0400)
commit96eccbbcd37201bf462fe0d655ca77ecb81b7e1e
tree9bb7504a4137ad824766388dc93cf1221e42a55b
parent064b8bc4ef30f6fc307827e0e9a18c82caa0c17f
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.023915 seconds and 4 git commands to generate.