X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fgraph_ident.c;h=7dda849e0794bb01f9e19c3d75a58529126a9e80;hb=7173d20ea5c32867ccb6a10f3417a632e41bfe66;hp=d1b1b056af763c414a9f8b3e5f8f5b73215084b5;hpb=a0ce16dc07cbdb39a408fee847bfde5ca808406e;p=collection4.git diff --git a/src/graph_ident.c b/src/graph_ident.c index d1b1b05..7dda849 100644 --- a/src/graph_ident.c +++ b/src/graph_ident.c @@ -94,8 +94,10 @@ static char *part_copy_with_selector (const char *selector, /* {{{ */ static _Bool part_matches (const char *selector, /* {{{ */ const char *part) { +#if C4_DEBUG if ((selector == NULL) && (part == NULL)) return (1); +#endif if (selector == NULL) /* && (part != NULL) */ return (0); @@ -401,8 +403,10 @@ int ident_compare (const graph_ident_t *i0, /* {{{ */ _Bool ident_matches (const graph_ident_t *selector, /* {{{ */ const graph_ident_t *ident) { +#if C4_DEBUG if ((selector == NULL) || (ident == NULL)) return (0); +#endif if (!part_matches (selector->host, ident->host)) return (0);