Home
last modified time | relevance | path

Searched refs:pathname_clone (Results 1 – 1 of 1) sorted by relevance

/components/legacy/fdt/src/
A Ddtb_get.c553 char *pathname_clone; in dtb_node_get_dtb_node_by_path() local
574 pathname_clone = (char *)malloc(pathname_sz); in dtb_node_get_dtb_node_by_path()
575 if (pathname_clone == NULL) in dtb_node_get_dtb_node_by_path()
579 strncpy(pathname_clone, pathname, pathname_sz); in dtb_node_get_dtb_node_by_path()
580 node_name = pathname_clone; in dtb_node_get_dtb_node_by_path()
582 while (pathname_clone[i]) in dtb_node_get_dtb_node_by_path()
584 if (pathname_clone[i] == '/') in dtb_node_get_dtb_node_by_path()
587 pathname_clone[i] = '\0'; in dtb_node_get_dtb_node_by_path()
599 free(pathname_clone); in dtb_node_get_dtb_node_by_path()
603 node_name = &pathname_clone[i + 1]; in dtb_node_get_dtb_node_by_path()
[all …]

Completed in 3 milliseconds