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)
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>

No differences found
This page took 0.023996 seconds and 4 git commands to generate.