From e6ec4637a0c9b42132dcbde73ad4506666b92975 Mon Sep 17 00:00:00 2001 From: Chuck Lever Date: Wed, 23 Dec 2009 11:18:17 -0500 Subject: [PATCH] libexport.a: fix a long-standing typo in name_cmp() 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 file changed, 1 insertion(+), 1 deletion(-) diff --git a/support/export/client.c b/support/export/client.c index 5fcf355..6236561 100644 --- a/support/export/client.c +++ b/support/export/client.c @@ -297,7 +297,7 @@ name_cmp(char *a, 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; -- 2.39.2