X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fgraph_ident.c;fp=src%2Fgraph_ident.c;h=36e066d15dc85792fed5a54d470459beeb63fe91;hb=95cad1f9e58e9f1a5480e62fc2cdd2c3de33a863;hp=cb9a3618fb30d19bf87ca183ee60233db296bda4;hpb=7d659a7188dd2012d9e7a90168750757b4ef97ba;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);