From c81720d57b093da6ab9eb06d9ccc69bc12d297f6 Mon Sep 17 00:00:00 2001 From: David Berry Date: Thu, 3 Oct 2019 11:33:39 +0100 Subject: [PATCH] astEqual: Check neither object is NULL --- component.xml | 2 +- object.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/component.xml b/component.xml index 9674e85d..da17d654 100644 --- a/component.xml +++ b/component.xml @@ -2,7 +2,7 @@ - 8.8.0 + 9.0.0 libext/ast WCS library diff --git a/object.c b/object.c index 6cffb919..825ee59e 100644 --- a/object.c +++ b/object.c @@ -5875,6 +5875,7 @@ int astManageLock_( AstObject *this, int mode, int extra, AstObject **fail, int astEqual_( AstObject *this, AstObject *that, int *status ) { if ( !astOK ) return 0; if( this == that ) return 1; + if( !this || !that ) return 0; return (**astMEMBER(this,Object,Equal))( this, that, status ); } const char *astGetAttrib_( AstObject *this, const char *attrib, int *status ) {