This is an automated email from the ASF dual-hosted git repository.

acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 00e0afb  libc/gettext: Change g_domain to array
00e0afb is described below

commit 00e0afb8648c3974cc3cc15ae60227d52352f07e
Author: Xiang Xiao <[email protected]>
AuthorDate: Wed Aug 4 21:31:05 2021 +0800

    libc/gettext: Change g_domain to array
    
    otherwise textdomain will deference NULL pointer in the default case
    
    Signed-off-by: Xiang Xiao <[email protected]>
---
 libs/libc/locale/lib_gettext.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libs/libc/locale/lib_gettext.c b/libs/libc/locale/lib_gettext.c
index df41fca..4115c22 100644
--- a/libs/libc/locale/lib_gettext.c
+++ b/libs/libc/locale/lib_gettext.c
@@ -77,7 +77,7 @@ static sem_t g_sem = SEM_INITIALIZER(1);
 static FAR struct mofile_s *g_mofile;
 
 #ifndef CONFIG_BUILD_KERNEL
-static FAR char *g_domain;
+static FAR char g_domain[NAME_MAX];
 #endif
 
 /****************************************************************************

Reply via email to