Searched refs:rnext (Results 1 – 1 of 1) sorted by relevance
247 struct string_list *rnext; in find_in_path() local250 rnext = xmalloc(sizeof(void *) + strlen(filename) in find_in_path()252 if (!len) sprintf(rnext->str, "%s/%s", cwd, filename); in find_in_path()254 char *res = rnext->str; in find_in_path()263 if (!stat(rnext->str, &st) && S_ISREG(st.st_mode)) { in find_in_path()264 *prlist = rnext; in find_in_path()265 rnext->next = NULL; in find_in_path()266 prlist = &(rnext->next); in find_in_path()267 } else free(rnext); in find_in_path()