From 28d1dc525182c347f2346c52fa7b5ab4a9b1a148 Mon Sep 17 00:00:00 2001 From: Alex Deymo Date: Tue, 1 Jul 2014 22:52:32 -0700 Subject: 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. --- src/chcon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/chcon.c b/src/chcon.c index e253a4639..cda06612f 100644 --- a/src/chcon.c +++ b/src/chcon.c @@ -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; -- cgit v1.2.3-70-g09d2