mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 00:14:22 +08:00
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:
@@ -77,7 +77,7 @@ static sem_t g_sem = SEM_INITIALIZER(1);
|
|||||||
static FAR struct mofile_s *g_mofile;
|
static FAR struct mofile_s *g_mofile;
|
||||||
|
|
||||||
#ifndef CONFIG_BUILD_KERNEL
|
#ifndef CONFIG_BUILD_KERNEL
|
||||||
static FAR char *g_domain;
|
static FAR char g_domain[NAME_MAX];
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
|
|||||||
Reference in New Issue
Block a user