0ed2a2e3c31f72a7a5c5ee9c55ceba656a7abea2
[feed/packages.git] / net / mini_snmpd / patches / 104-memset_fix.patch
1 --- a/mini_snmpd.c
2 +++ b/mini_snmpd.c
3 @@ -443,7 +443,7 @@ int main(int argc, char *argv[])
4 /* Store the starting time since we need it for MIB updates */
5 if (gettimeofday(&tv_last, NULL) == -1) {
6 memset(&tv_last, 0, sizeof (tv_last));
7 - memset(&tv_sleep, 0, sizeof (&tv_sleep));
8 + memset(&tv_sleep, 0, sizeof (tv_sleep));
9 } else {
10 tv_sleep.tv_sec = g_timeout / 100;
11 tv_sleep.tv_usec = (g_timeout % 100) * 10000;