applied gsjaardema's suggested change to ocnode.c

This commit is contained in:
Ed Hartnett 2017-11-30 09:22:14 -07:00
parent 0fbfc2bce4
commit 06eb8669df

View File

@ -482,6 +482,8 @@ occorrelater(OCnode* dds, OCnode* dxd)
if(dxd->name != NULL && dxd->name != NULL
&& strcmp(dxd->name,dds->name) != 0) {
OCTHROWCHK((ocstat = OC_EINVAL)); goto fail;
} else if(dxd->name != dds->name) { /* test NULL==NULL */
OCTHROWCHK((ocstat = OC_EINVAL)); goto fail;
}
if(dxd->array.rank != dds->array.rank) {