libxl__ao_inprogress_gc() is hidden behind various macros used to construct local variables. Assert() that NULL is not passed, to make such an error very obvious, rather than a plain segfault at 0.
No functional change. Signed-off-by: Andrew Cooper <andrew.coop...@citrix.com> --- CC: Ian Campbell <ian.campb...@citrix.com> CC: Ian Jackson <ian.jack...@eu.citrix.com> CC: Wei Liu <wei.l...@citrix.com> --- tools/libxl/libxl_event.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/libxl/libxl_event.c b/tools/libxl/libxl_event.c index 8acecfa..bfb6b31 100644 --- a/tools/libxl/libxl_event.c +++ b/tools/libxl/libxl_event.c @@ -1862,6 +1862,7 @@ void libxl__ao_create_fail(libxl__ao *ao) libxl__gc *libxl__ao_inprogress_gc(libxl__ao *ao) { + assert(ao); assert(ao->magic == LIBXL__AO_MAGIC); assert(!ao->complete); return &ao->gc; -- 1.7.10.4 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel