From 375fdd4f866398a9d931408d0c40e6e782e291e1 Mon Sep 17 00:00:00 2001 From: Marc Dionne Date: Sun, 28 Feb 2010 11:08:11 -0500 Subject: [PATCH] Don't pass NULL to strcmp A recent gcc update gives me a series of warnings from the NULL argument to strcmp. We should be passing an empty string instead of a NULL pointer. I suspect this was unintentional from a search/replace operation in commit 8229e668. Change-Id: I9677d80d32e5bd54ca1b560788a430c8cf40dae9 Reviewed-on: http://gerrit.openafs.org/1489 Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear --- src/bucoord/commands.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bucoord/commands.c b/src/bucoord/commands.c index 1cfdcc7a75..a091ba1d4a 100644 --- a/src/bucoord/commands.c +++ b/src/bucoord/commands.c @@ -307,7 +307,7 @@ EvalVolumeSet2(struct bc_config *aconfig, if ((strcmp(&entries[e].name[l], ".backup") == 0) || (strcmp(&entries[e].name[l], ".readonly") == 0) - || (strcmp(&entries[e].name[l], NULL) == 0)) + || (strcmp(&entries[e].name[l], "") == 0)) add = 0; } }