Fix globset compilation warning
[src/app-framework-binder.git] / src / globset.c
index 124ff24..5ffdfa2 100644 (file)
@@ -227,21 +227,16 @@ static struct pathndl *search(
                pph = &set->globs;
        else if (set->exacts)
                pph = &set->exacts[hash & set->gmask];
-       else
+       else {
+               *pprev = NULL;
                return NULL;
+       }
        while ((ph = *pph) && strcmp(normal, ph->handler.pattern))
                pph = &ph->next;
        *pprev = pph;
        return ph;
 }
 
-
-
-
-
-
-
-
 /**
  * Allocates a new set of handlers
  *