[vlc-devel] [PATCH] gui/qt: menus: do not use VLC_OBJECT on NULL
remi at remlab.net
Thu Feb 23 23:18:43 CET 2017
Le perjantaina 24. helmikuuta 2017, 0.04.46 EET Rémi Denis-Courmont a écrit :
> Le torstaina 23. helmikuuta 2017, 14.54.24 EET Filip Roséen a écrit :
> > VLC_OBJECT reaches inside the data-members of the passed pointer to
> > reach the intrinsic object, so that a pointer to the internal
> > vlc_object_t can be created.
> Yes but no. The result is the same however: the compiler assumes that the
> pointer is not NULL.
Actually yes. The C++ version does -technically- access the object, although
the C version does not. But at least, LLVM seems to barf also on the C
version; I suspect this is an LLVM bug though.
More information about the vlc-devel