chiark / gitweb /
nspawn: fix build on non-selinux systems
authorLennart Poettering <lennart@poettering.net>
Thu, 19 Feb 2015 11:03:12 +0000 (12:03 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 19 Feb 2015 11:03:12 +0000 (12:03 +0100)
src/nspawn/nspawn.c

index 8a151f15ea16fc764ab5e5c28e396c2d1e34bbd6..9967423dbc977d1a941f8a65204fff22cafe0b81 100644 (file)
@@ -872,10 +872,7 @@ static int mount_all(const char *dest) {
         int r = 0;
 
         for (k = 0; k < ELEMENTSOF(mount_table); k++) {
-                _cleanup_free_ char *where = NULL;
-#ifdef HAVE_SELINUX
-                _cleanup_free_ char *options = NULL;
-#endif
+                _cleanup_free_ char *where = NULL, *options = NULL;
                 const char *o;
                 int t;