[GH-ISSUE #2381] print.c:209:20: warning: duplicated 'if' condition [-Wduplicated-cond] #1590

Closed
opened 2026-05-05 08:14:37 -06:00 by gitea-mirror · 1 comment
Owner

Originally created by @dcb314 on GitHub (Jan 30, 2019).
Original GitHub issue: https://github.com/netblue30/firejail/issues/2381

Source code is

                   else if (bpf->k == offsetof(struct seccomp_data, nr)) {
                            printf("data.syscall-number");
                            syscall_loaded = 1;
                    }
                    else if (bpf->k == offsetof(struct seccomp_data, nr))
Originally created by @dcb314 on GitHub (Jan 30, 2019). Original GitHub issue: https://github.com/netblue30/firejail/issues/2381 Source code is else if (bpf->k == offsetof(struct seccomp_data, nr)) { printf("data.syscall-number"); syscall_loaded = 1; } else if (bpf->k == offsetof(struct seccomp_data, nr))
gitea-mirror 2026-05-05 08:14:37 -06:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@netblue30 commented on GitHub (Jan 30, 2019):

Thanks, I'll clean it up.

<!-- gh-comment-id:459061499 --> @netblue30 commented on GitHub (Jan 30, 2019): Thanks, I'll clean it up.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/firejail#1590
No description provided.