adg: return NULL instead of invalid data from adg_path_last_primitive
commitc179461ca588748bdafc92194d56b7c109c6aa32
authorNicola Fontana <ntd@entidi.it>
Wed, 11 Feb 2015 16:55:46 +0000 (11 17:55 +0100)
committerNicola Fontana <ntd@entidi.it>
Wed, 11 Feb 2015 16:55:46 +0000 (11 17:55 +0100)
tree299052b103744f3455ee5ece3e714cf5739bd3cd
parent33766a8f07b868a472690dd8363593508388272d
adg: return NULL instead of invalid data from adg_path_last_primitive

AdgPath holds a private CpmlPrimitive struct that refers to the last
primitive appended. If there is no such primitive this struct is
0-filled: return NULL from the API instead of this 0-filled struct.
src/adg/adg-path.c