Skip to content

Commit

Permalink
Return the strdup result
Browse files Browse the repository at this point in the history
  • Loading branch information
sjoelund authored and OpenModelica-Hudson committed Feb 7, 2017
1 parent f688b5d commit 582c1ef
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions SimulationRuntime/c/util/utility.c
Expand Up @@ -130,6 +130,7 @@ static char* Modelica_strdup(const char *str)
{
char *res = ModelicaAllocateString(strlen(str));
strcpy(res, str);
return res;
}

extern int OpenModelica_regex(const char* str, const char* re, int maxn, int extended, int sensitive, const char **outMatches)
Expand Down

0 comments on commit 582c1ef

Please sign in to comment.