diff --git a/src/graph_ident.c b/src/graph_ident.c
index cb9a3618fb30d19bf87ca183ee60233db296bda4..36e066d15dc85792fed5a54d470459beeb63fe91 100644 (file)
--- a/src/graph_ident.c
+++ b/src/graph_ident.c
_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);