mirror of
https://git.openafs.org/openafs.git
synced 2025-01-19 07:20:11 +00:00
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 <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
This commit is contained in:
parent
8ade30f3f1
commit
375fdd4f86
@ -307,7 +307,7 @@ EvalVolumeSet2(struct bc_config *aconfig,
|
|||||||
if ((strcmp(&entries[e].name[l], ".backup") == 0)
|
if ((strcmp(&entries[e].name[l], ".backup") == 0)
|
||||||
|| (strcmp(&entries[e].name[l], ".readonly")
|
|| (strcmp(&entries[e].name[l], ".readonly")
|
||||||
== 0)
|
== 0)
|
||||||
|| (strcmp(&entries[e].name[l], NULL) == 0))
|
|| (strcmp(&entries[e].name[l], "") == 0))
|
||||||
add = 0;
|
add = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user