libaml: fix fault when the second operand of comparison cannot be converted

front
Sigrid 2020-08-20 08:28:24 +02:00
parent de34481f8b
commit b6fde0c7b9
1 changed files with 1 additions and 1 deletions

View File

@ -1524,7 +1524,7 @@ cmp1(void *a, void *b)
tag = TAG(a);
if(b == nil || TAG(b) != tag)
b = copy(tag, b);
if(TAG(b) != tag)
if(b == nil || TAG(b) != tag)
return -1; /* botch */
switch(tag){
default: