From f043619125b741650266fd0ddd4f8bb01fef0646 Mon Sep 17 00:00:00 2001 From: zijunzhao Date: Wed, 14 Dec 2022 02:16:57 +0000 Subject: [PATCH] Nullability check for langinfo module. Bugs: b/245972273 Test: None Change-Id: I92df36179d25ec668647f15848e5164eeb5d4d70 --- libc/include/langinfo.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libc/include/langinfo.h b/libc/include/langinfo.h index d9d8c1558..2b43892eb 100644 --- a/libc/include/langinfo.h +++ b/libc/include/langinfo.h @@ -92,8 +92,8 @@ __BEGIN_DECLS #define NOEXPR 54 #define CRNCYSTR 55 -char* nl_langinfo(nl_item __item) __INTRODUCED_IN(26); -char* nl_langinfo_l(nl_item __item, locale_t __l) __INTRODUCED_IN(26); +char* _Nonnull nl_langinfo(nl_item __item) __INTRODUCED_IN(26); +char* _Nonnull nl_langinfo_l(nl_item __item, locale_t _Nonnull __l) __INTRODUCED_IN(26); __END_DECLS