libc/gettext: Change g_domain to array

otherwise textdomain will deference NULL pointer in the default case

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2021-08-04 21:31:05 +08:00 committed by Alan Carvalho de Assis
parent ec17cad69d
commit 00e0afb864
1 changed files with 1 additions and 1 deletions

View File

@ -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
/****************************************************************************