libexport.a: fix a long-standing typo in name_cmp() From: Chuck Lever Not sure what "(!*a || !a == ',')" means... but just a few lines later is "(!*a || *a == ',')". I think "a is '\0' or ','" is what was intended. Signed-off-by: Chuck Lever Signed-off-by: Steve Dickson --- support/export/client.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/support/export/client.c b/support/export/client.c index 5740ca0..8caf206 100644 --- a/support/export/client.c +++ b/support/export/client.c @@ -340,7 +340,7 @@ name_cmp(const char *a, const char *b) /* compare strings a and b, but only upto ',' in a */ while (*a && *b && *a != ',' && *a == *b) a++, b++; - if (!*b && (!*a || !a == ',') ) + if (!*b && (!*a || *a == ',')) return 0; if (!*b) return 1; if (!*a || *a == ',') return -1;