mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 16:50:55 +08:00
libc/gettext: Initialize path field when creating mofile struct.
Signed-off-by: Xu Xingliang <xuxingliang@xiaomi.com> Change-Id: Ic88876b254e29ac6156f8b2b15c5321af62f4e24
This commit is contained in:
committed by
xuxingliang
parent
5e8b1fba63
commit
e42c3ea8a8
@@ -312,6 +312,7 @@ FAR char *dcngettext(FAR const char *domainname,
|
||||
return notrans;
|
||||
}
|
||||
|
||||
strncpy(mofile->path, path, PATH_MAX);
|
||||
mofile->map = momap(path, &mofile->size);
|
||||
if (mofile->map == MAP_FAILED)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user