X-Git-Url: https://git.octo.it/?p=collection4.git;a=blobdiff_plain;f=src%2Fgraph_ident.c;h=7dda849e0794bb01f9e19c3d75a58529126a9e80;hp=d1b1b056af763c414a9f8b3e5f8f5b73215084b5;hb=d03bbb38c5177de7ad4da2934980ebd9d119f287;hpb=ad1116ef7c9edd4d03a500f53c14ef1754503e21 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);