diff options
author | 2019-02-05 22:22:32 +0100 | |
---|---|---|
committer | 2019-02-05 22:22:32 +0100 | |
commit | e0d0ec7dd066d8f80c963d20127b23ed80744ce9 (patch) | |
tree | bd33beed22bf27f97a840a454fc182cff9fbe9f3 /src | |
parent | cnt only used for debugging (diff) | |
download | firejail-e0d0ec7dd066d8f80c963d20127b23ed80744ce9.tar.gz firejail-e0d0ec7dd066d8f80c963d20127b23ed80744ce9.tar.zst firejail-e0d0ec7dd066d8f80c963d20127b23ed80744ce9.zip |
variable only used when whitelisting enabled
Diffstat (limited to 'src')
-rw-r--r-- | src/firejail/profile.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/firejail/profile.c b/src/firejail/profile.c index bc66aca78..26b915602 100644 --- a/src/firejail/profile.c +++ b/src/firejail/profile.c | |||
@@ -241,7 +241,9 @@ error: | |||
241 | // return 1 if the command is to be added to the linked list of profile commands | 241 | // return 1 if the command is to be added to the linked list of profile commands |
242 | // return 0 if the command was already executed inside the function | 242 | // return 0 if the command was already executed inside the function |
243 | int profile_check_line(char *ptr, int lineno, const char *fname) { | 243 | int profile_check_line(char *ptr, int lineno, const char *fname) { |
244 | #ifdef HAVE_WHITELIST | ||
244 | static int whitelist_warning_printed = 0; | 245 | static int whitelist_warning_printed = 0; |
246 | #endif | ||
245 | EUID_ASSERT(); | 247 | EUID_ASSERT(); |
246 | 248 | ||
247 | // check and process conditional profile lines | 249 | // check and process conditional profile lines |