src/fileio.c: Move computation of encoded_absname inside `if'.

This commit is contained in:
Juanma Barranquero 2011-03-25 18:37:15 +01:00
parent 0f4a96b5d7
commit a9b53ad377

View file

@ -2806,11 +2806,10 @@ is disabled. */)
return call3 (handler, Qset_file_selinux_context, absname, context);
#if HAVE_LIBSELINUX
encoded_absname = ENCODE_FILE (absname);
if (is_selinux_enabled ())
{
/* Get current file context. */
encoded_absname = ENCODE_FILE (absname);
conlength = lgetfilecon (SSDATA (encoded_absname), &con);
if (conlength > 0)
{