2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 06:15:37 +00:00

Fix memset size typo in previous commit.

This commit is contained in:
Todd C. Miller
2016-08-25 10:36:53 -06:00
parent c5cfc9584c
commit a246c9570a

View File

@@ -718,7 +718,7 @@ check_defaults(int what, bool quiet)
}
/* Don't actually set the defaults value, just checking. */
tmp = *cur;
memset(&tmp.sd_un, 0, sizeof(&tmp.sd_un));
memset(&tmp.sd_un, 0, sizeof(tmp.sd_un));
if (!set_default_entry(&tmp, def->val, def->op, quiet, false))
rc = false;
free_default(&tmp);