Fix: sink.ctf.fs: dereference before NULL check
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Fri, 23 Aug 2019 18:38:03 +0000 (11:38 -0700)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Sun, 25 Aug 2019 03:04:38 +0000 (23:04 -0400)
commit57c48dcf96c3ae57fb5b02c48ea0691523d85e1d
treefc7e5e884883b49fb57210013527e559d831c47f
parentcc611878422b247b5630e85223a3cb60b57cc16d
Fix: sink.ctf.fs: dereference before NULL check

  CID 1404550 (#1 of 1): Dereference before null check (REVERSE_INULL)
  check_after_deref: Null-checking tsdl suggests that it may be null,
  but it has already been dereferenced on all paths leading to the
  check.

Reported-by: Coverity - Dereference before null check (REVERSE_INULL)
Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Change-Id: I7566cbd74529e93587079d163bb1691e420f723f
Reviewed-on: https://review.lttng.org/c/babeltrace/+/1974
Tested-by: jenkins <jenkins@lttng.org>
Reviewed-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
src/plugins/ctf/fs-sink/fs-sink-trace.c
This page took 0.0252250000000001 seconds and 4 git commands to generate.