]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r346539:
authorngie <ngie@FreeBSD.org>
Mon, 29 Apr 2019 19:11:56 +0000 (19:11 +0000)
committerngie <ngie@FreeBSD.org>
Mon, 29 Apr 2019 19:11:56 +0000 (19:11 +0000)
commit7f0848648b64108f1386a1340f68c50d0f8b2b94
treecc672ccc1fd0b95c9437591a4c2a6a671e6b72de
parent1b4ed3ee3a706c543051712a30ac32b3dd9ff943
MFC r346539:

Fix `get_int_via_sysctlbyname(..)` on Jenkins

Initialize `oldlen` to the size of the value, instead of leaving the value
unitialized. Leaving it unitialized seems to work by accident on amd64 when
running 64-bit programs, but not on i386.

This matches patterns in use in other programs.

PR: 237458
Tested on: ^/head (amd64), ^/stable/11 (i386)
lib/libc/tests/sys/sendfile_test.c