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:
parent
ec17cad69d
commit
00e0afb864
|
@ -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
|
||||
|
||||
/****************************************************************************
|
||||
|
|
Loading…
Reference in New Issue