summaryrefslogtreecommitdiff
path: root/src/chcon.c
diff options
context:
space:
mode:
authorAlex Deymo <deymo@chromium.org>2014-07-01 22:52:32 -0700
committerPádraig Brady <P@draigBrady.com>2014-07-02 10:47:41 +0100
commit28d1dc525182c347f2346c52fa7b5ab4a9b1a148 (patch)
tree3fe2a45e53e762ec2e8d4af4aa8ae6978cd923a1 /src/chcon.c
parent149a3b2c78d9adc35873df60660651605e88edb9 (diff)
downloadcoreutils-28d1dc525182c347f2346c52fa7b5ab4a9b1a148.tar.xz
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.
Diffstat (limited to 'src/chcon.c')
-rw-r--r--src/chcon.c2
1 files changed, 1 insertions, 1 deletions
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;