X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fgraph_ident.c;h=36e066d15dc85792fed5a54d470459beeb63fe91;hb=b7203b849d84ce9ca2b063dd768e7d0033472ace;hp=cb9a3618fb30d19bf87ca183ee60233db296bda4;hpb=16078f690bbc4379460c49b1f059a46a2c2b35a2;p=collection4.git diff --git a/src/graph_ident.c b/src/graph_ident.c index cb9a361..36e066d 100644 --- a/src/graph_ident.c +++ b/src/graph_ident.c @@ -377,12 +377,8 @@ int ident_compare (const graph_ident_t *i0, /* {{{ */ _Bool ident_matches (const graph_ident_t *selector, /* {{{ */ const graph_ident_t *ident) { - if ((selector == NULL) && (ident == NULL)) + if ((selector == NULL) || (ident == NULL)) return (0); - else if (selector == NULL) - return (-1); - else if (ident == NULL) - return (1); if (!part_matches (selector->host, ident->host)) return (0);