Quiet gcc -Wuninitialized false positive

This commit is contained in:
Todd C. Miller
2013-03-06 15:56:26 -05:00
parent 7d3ce01a05
commit 56d45003e5

View File

@@ -357,6 +357,12 @@ sudo_file_display_priv_short(struct passwd *pw, struct userspec *us,
int nfound = 0;
debug_decl(sudo_file_display_priv_short, SUDO_DEBUG_NSS)
/* gcc -Wuninitialized false positive */
tags.noexec = UNSPEC;
tags.setenv = UNSPEC;
tags.nopasswd = UNSPEC;
tags.log_input = UNSPEC;
tags.log_output = UNSPEC;
tq_foreach_fwd(&us->privileges, priv) {
if (hostlist_matches(&priv->hostlist) != ALLOW)
continue;