libc/gettextdomain: Fix the typo error

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao
2021-12-12 11:34:53 +08:00
committed by Xiang Xiao
parent f5ddbb317f
commit db6dd623c6
+3 -3
View File
@@ -76,7 +76,7 @@ static FAR const char *g_catname[] =
static sem_t g_sem = SEM_INITIALIZER(1); 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 #ifdef CONFIG_BUILD_KERNEL
static FAR char g_domain[NAME_MAX]; static FAR char g_domain[NAME_MAX];
#endif #endif
@@ -88,12 +88,12 @@ static FAR char *gettextdomain(void)
{ {
FAR char *domain; FAR char *domain;
#ifdef CONFIG_BUILD_KERNEL #ifdef CONFIG_BUILD_KERNEL
domain = g_domain;
#else
FAR struct task_info_s *info; FAR struct task_info_s *info;
info = task_get_info(); info = task_get_info();
domain = info->ta_domain; domain = info->ta_domain;
#else
domain = g_domain;
#endif #endif
return domain; return domain;