git: e53b83a849e3 - main - tests/sigsys: initialize parameter passed to sysctlbyname()
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 20 Feb 2024 22:38:37 UTC
The branch main has been updated by glebius: URL: https://cgit.FreeBSD.org/src/commit/?id=e53b83a849e3a34772d0a0ed26eb0cb4aeeec71d commit e53b83a849e3a34772d0a0ed26eb0cb4aeeec71d Author: Gleb Smirnoff <glebius@FreeBSD.org> AuthorDate: 2024-02-20 22:37:45 +0000 Commit: Gleb Smirnoff <glebius@FreeBSD.org> CommitDate: 2024-02-20 22:37:45 +0000 tests/sigsys: initialize parameter passed to sysctlbyname() --- tests/sys/kern/sigsys.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/sys/kern/sigsys.c b/tests/sys/kern/sigsys.c index 8554a646ebc6..8b9a4e8516e7 100644 --- a/tests/sys/kern/sigsys.c +++ b/tests/sys/kern/sigsys.c @@ -63,7 +63,7 @@ sigsys_test(int knob) static void sysctlset(const char *name, int val) { - size_t oldlen; + size_t oldlen = sizeof(int); int oldval; char buf[80];