Skip to content

Commit

Permalink
Fix MSVC warning (modelica#4274)
Browse files Browse the repository at this point in the history
  • Loading branch information
beutlich committed Jan 18, 2024
1 parent 5fe4ebd commit 20d009a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Modelica/Resources/C-Sources/ModelicaMatIO.c
Expand Up @@ -3327,7 +3327,7 @@ Mat_GetDir(mat_t *mat, size_t *n)
}
if ( NULL != dir ) {
mat->dir = dir;
mat->dir[mat->num_datasets++] = strdup(matvar->name);
mat->dir[mat->num_datasets++] = Mat_strdup(matvar->name);
} else {
Mat_Critical("Couldn't allocate memory for the directory");
break;
Expand Down

0 comments on commit 20d009a

Please sign in to comment.