Skip to content

Commit

Permalink
astEqual: Check neither object is NULL
Browse files Browse the repository at this point in the history
  • Loading branch information
dsberry committed Oct 3, 2019
1 parent 3e64fb0 commit c81720d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion component.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<!DOCTYPE component SYSTEM "componentinfo.dtd">

<component id="ast" support="S">
<version>8.8.0</version>
<version>9.0.0</version>
<path>libext/ast</path>
<description>WCS library</description>
<abstract>
Expand Down
1 change: 1 addition & 0 deletions object.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) {
Expand Down

0 comments on commit c81720d

Please sign in to comment.