X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=support%2Fexport%2Fclient.c;h=6236561465f26261175b290276abeb10c39de0bd;hb=6295bb04c73403a219bc96cc6770fc96bec19ba6;hp=5fcf35539cad917c2333d9a370f5bca6fcb7f771;hpb=44e6972a6f9bb7a0a99114e0d22a66a3cba0f0f8;p=nfs-utils.git 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;