libs/libc/misc/lib_envpath.c: Fix typo error

This commit is contained in:
Xiang Xiao 2018-11-09 09:35:25 -06:00 committed by Gregory Nutt
parent ae6797aabb
commit cb095ea3d3

View File

@ -223,7 +223,7 @@ FAR char *envpath_next(ENVPATH_HANDLE handle, FAR const char *relpath)
pathlen = strlen(path) + strlen(relpath) + 2; pathlen = strlen(path) + strlen(relpath) + 2;
fullpath = (FAR char *)lib_malloc(pathlen); fullpath = (FAR char *)lib_malloc(pathlen);
if (fullpathi == NULL) if (fullpath == NULL)
{ {
/* Failed to allocate memory */ /* Failed to allocate memory */