Skip to content

Commit dcd0489

Browse files
committed
preproc.c: remove "!= NULL" from asserts
For consistency with the rest of the codebase. This amends commit 53bc658 ("modif: improve flock handling", 2024-04-17) / #6307.
1 parent 62f477d commit dcd0489

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/firejail/preproc.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
static int tmpfs_mounted = 0;
2929

3030
static void preproc_lock_file(const char *path, int *lockfd_ptr) {
31-
assert(path != NULL);
32-
assert(lockfd_ptr != NULL);
31+
assert(path);
32+
assert(lockfd_ptr);
3333

3434
long pid = (long)getpid();
3535
if (arg_debug)
@@ -63,8 +63,8 @@ static void preproc_lock_file(const char *path, int *lockfd_ptr) {
6363
}
6464

6565
static void preproc_unlock_file(const char *path, int *lockfd_ptr) {
66-
assert(path != NULL);
67-
assert(lockfd_ptr != NULL);
66+
assert(path);
67+
assert(lockfd_ptr);
6868

6969
long pid = (long)getpid();
7070
if (arg_debug)

0 commit comments

Comments
 (0)