diff options
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/common.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/common.c b/src/lib/common.c index add4ff087..3f66fa72a 100644 --- a/src/lib/common.c +++ b/src/lib/common.c | |||
@@ -203,6 +203,8 @@ char *pid_proc_cmdline(const pid_t pid) { | |||
203 | int pid_proc_cmdline_x11_xpra_xephyr(const pid_t pid) { | 203 | int pid_proc_cmdline_x11_xpra_xephyr(const pid_t pid) { |
204 | // if comm is not firejail return 0 | 204 | // if comm is not firejail return 0 |
205 | char *comm = pid_proc_comm(pid); | 205 | char *comm = pid_proc_comm(pid); |
206 | if (comm == NULL) | ||
207 | return 0; | ||
206 | if (strcmp(comm, "firejail") != 0) { | 208 | if (strcmp(comm, "firejail") != 0) { |
207 | free(comm); | 209 | free(comm); |
208 | return 0; | 210 | return 0; |