Skip to content
This repository was archived by the owner on May 18, 2019. It is now read-only.

Commit 27ab275

Browse files
sjoelundOpenModelica-Hudson
authored andcommitted
Bugfix for URI lookup in class
Classes in a package were not handled properly; the wrong directory was used for the isDirectory check. Belonging to [master]: - #2147
1 parent f8d52b9 commit 27ab275

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SimulationRuntime/c/util/utility.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ extern modelica_string OpenModelica_uriToFilename_impl(threadData_t *threadData,
314314
/* Copy the old directory in there */
315315
strcpy(buf, MMC_STRINGDATA(dir));
316316
buf[MMC_STRLEN(dir)]='/';
317-
if (!(0==stat(dir, &stat_buf) && S_ISDIR(stat_buf.st_mode))) {
317+
if (!(0==stat(buf, &stat_buf) && S_ISDIR(stat_buf.st_mode))) {
318318
break;
319319
}
320320
dir = mmc_mk_scon(buf);

0 commit comments

Comments
 (0)