X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fglobset.c;h=5ffdfa20ac95d43725431265e23753089543db33;hb=refs%2Ftags%2F8.99.5;hp=124ff246b36767625347792f7a85c3e49a252cea;hpb=65353dce81a629e042800bb7b86fcd869a76727e;p=src%2Fapp-framework-binder.git diff --git a/src/globset.c b/src/globset.c index 124ff246..5ffdfa20 100644 --- a/src/globset.c +++ b/src/globset.c @@ -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 *