1
1

Fix create_dirpath to shut valgrind up.

This commit was SVN r2800.
Этот коммит содержится в:
Ralph Castain 2004-09-22 15:56:02 +00:00
родитель 02f95a5f14
Коммит 64db75b43e

Просмотреть файл

@ -74,7 +74,9 @@ int ompi_os_create_dirpath(const char *path, const mode_t mode)
free(bottom_up);
return(OMPI_ERROR);
}
strcpy(bottom_up, dirname(bottom_up)); /* "pop" the directory tree */
tmp = strdup(bottom_up);
strcpy(bottom_up, dirname(tmp)); /* "pop" the directory tree */
free(tmp);
}
free(pth);