diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2009-12-23 11:18:17 -0500 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2009-12-23 11:18:17 -0500 |
commit | e6ec4637a0c9b42132dcbde73ad4506666b92975 (patch) | |
tree | 22a4dc39e1cc8529e788f65343fff5ff8a370595 /support | |
parent | 1a1f991870f02b303a05e1d63915226e7cfb9f53 (diff) | |
download | nfs-utils-e6ec4637a0c9b42132dcbde73ad4506666b92975.tar.gz nfs-utils-e6ec4637a0c9b42132dcbde73ad4506666b92975.tar.xz nfs-utils-e6ec4637a0c9b42132dcbde73ad4506666b92975.zip |
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 <chuck.lever@oracle.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'support')
-rw-r--r-- | 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 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; |