mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-22 01:49:11 +00:00
Quiet two clang analyzer false positives.
This commit is contained in:
parent
f19a71a3db
commit
aee276ea63
@ -1503,6 +1503,7 @@ listener_cb(int fd, int what, void *v)
|
||||
int sock;
|
||||
debug_decl(listener_cb, SUDO_DEBUG_UTIL);
|
||||
|
||||
memset(&sa_un, 0, sizeof(sa_un));
|
||||
sock = accept(fd, &sa_un.sa, &salen);
|
||||
if (sock != -1) {
|
||||
if (logsrvd_conf_server_tcp_keepalive()) {
|
||||
|
@ -574,6 +574,9 @@ print_cmndspec_csv(FILE *fp, struct sudoers_parse_tree *parse_tree,
|
||||
}
|
||||
}
|
||||
#endif /* HAVE_PRIV_SET */
|
||||
#ifdef __clang_analyzer__
|
||||
(void)&need_comma;
|
||||
#endif
|
||||
putc('"', fp);
|
||||
putc(',', fp);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user