]> git.eshelyaron.com Git - emacs.git/commitdiff
src/fileio.c: Move computation of encoded_absname inside `if'.
authorJuanma Barranquero <lekktu@gmail.com>
Fri, 25 Mar 2011 17:37:15 +0000 (18:37 +0100)
committerJuanma Barranquero <lekktu@gmail.com>
Fri, 25 Mar 2011 17:37:15 +0000 (18:37 +0100)
src/fileio.c

index bab9360d3bcd6b1c05a8ac92d1f89a63a046ff6e..85431dfd5b1f9a361e7feaf3d1bc48354b4be689 100644 (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)
        {