Fix: Added a null pointer check to bt_ctf_field_name
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 28 Jan 2013 16:06:59 +0000 (11:06 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 28 Jan 2013 16:08:53 +0000 (11:08 -0500)
commit338a0747b5833f1615fe709b9d36bab4d9ae646e
tree9005ec10365b1cbbbc44b785526c401963f4c2ac
parentf01efa78296179efeb48b1ec5379fa1465ae2824
Fix: Added a null pointer check to bt_ctf_field_name

This function is called indirectly when calling __repr__ (print) in the
python bindings on the definition object returned by the
get_top_level_scope method thus resulting in a segmentation fault when
the name attribute is not set.

Fixes #373

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
formats/ctf/events.c
This page took 0.024171 seconds and 4 git commands to generate.