Quiet two clang analyzer false positives.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user