mirror of
git://git.sv.gnu.org/coreutils.git
synced 2026-04-20 10:51:48 +02:00
maint: fix context_t init warning on systems without selinux
On systems without libselinux, context_t is defined as an int type, but defined as a pointer type by SELinux. * src/chcon.c: Init with 0 rather than NULL to avoid warning.
This commit is contained in:
committed by
Pádraig Brady
parent
149a3b2c78
commit
28d1dc5251
@@ -141,7 +141,7 @@ static int
|
||||
change_file_context (int fd, char const *file)
|
||||
{
|
||||
char *file_context = NULL;
|
||||
context_t context IF_LINT (= NULL);
|
||||
context_t context IF_LINT (= 0);
|
||||
char const * context_string;
|
||||
int errors = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user