fixed reading the not initialized data
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
Этот коммит содержится в:
родитель
a354a9b228
Коммит
0f9083f9c0
@ -811,6 +811,9 @@ vfs_path_add_element (const vfs_path_t * vpath, const vfs_path_element_t * path_
|
||||
const vfs_path_element_t *
|
||||
vfs_path_get_by_index (const vfs_path_t * vpath, int element_index)
|
||||
{
|
||||
if (vpath == NULL)
|
||||
return NULL;
|
||||
|
||||
if (element_index < 0)
|
||||
element_index += vfs_path_elements_count (vpath);
|
||||
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user