[PATCH] Linux: Add missing handling of tai field to __ntp_gettime64

Joseph Myers joseph@codesourcery.com
Wed May 20 15:53:39 GMT 2020


On Wed, 20 May 2020, Florian Weimer via Libc-alpha wrote:

> This fixes a build error:
> 
> ../sysdeps/unix/sysv/linux/ntp_gettime.c: In function ‘__ntp_gettime’:
> ../sysdeps/unix/sysv/linux/ntp_gettime.c:56:10: error: ‘ntv64.tai’ is used uninitialized in this function [-Werror=uninitialized]
>    56 |   *ntv = valid_ntptimeval64_to_ntptimeval (ntv64);
>       |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 
> ---
> Testing on x86_64-linux-gnu, i686-linux-gnu and building with
> build-many-glibcs.py is under way.

OK.

-- 
Joseph S. Myers
joseph@codesourcery.com


More information about the Libc-alpha mailing list