diff --git a/src/libCom/genSubr.c b/src/libCom/genSubr.c index 0ebd52111..89170df4b 100644 --- a/src/libCom/genSubr.c +++ b/src/libCom/genSubr.c @@ -402,6 +402,8 @@ int ignoreCase; /* I 0,1 to honor,ignore upper/lower case differences */ if (*text == '\0' || *(p-1) == '*') return 1; text = ++starText; + if (starP == NULL) + return 0; p = starP; } }