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:06:59 +0000 (11:06 -0500)
commit217b52c547ffee31e342cc5c3c1a1f6c6de2d3cf
tree979cf294ec5e8b9fa1e511c14cdaf8264c4a2d34
parent019c947fbab2175d4eae8ad184ba33252841b60d
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.02462 seconds and 4 git commands to generate.