diff options
Diffstat (limited to 'src/firejail/fs.c')
-rw-r--r-- | src/firejail/fs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/firejail/fs.c b/src/firejail/fs.c index 6505177d0..4d2711fcd 100644 --- a/src/firejail/fs.c +++ b/src/firejail/fs.c | |||
@@ -283,6 +283,8 @@ static void disable_file(OPERATION op, const char *filename) { | |||
283 | 283 | ||
284 | // if the file is not present, do nothing | 284 | // if the file is not present, do nothing |
285 | struct stat s; | 285 | struct stat s; |
286 | if (fname == NULL) | ||
287 | return; | ||
286 | if (stat(fname, &s) == -1) { | 288 | if (stat(fname, &s) == -1) { |
287 | if (arg_debug) | 289 | if (arg_debug) |
288 | printf("Warning: %s does not exist, skipping...\n", fname); | 290 | printf("Warning: %s does not exist, skipping...\n", fname); |