Skip to content

Commit b52bb88

Browse files
authored
Silence Clang warning (#4666)
ModelicaInternal.c:1309:15: note: initialize the variable 'result' to silence this warning Co-authored-by: Thomas Beutlich <[email protected]>
1 parent 6e12e8b commit b52bb88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modelica/Resources/C-Sources/ModelicaInternal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1306,7 +1306,7 @@ void ModelicaInternal_setenv(_In_z_ const char* name,
13061306
ModelicaError("Memory allocation error\n");
13071307
}
13081308
#elif defined(_POSIX_) && _POSIX_VERSION >= 200112L
1309-
int result;
1309+
int result = -1;
13101310
if (1 == convertFromSlash) {
13111311
char* buf = (char*)malloc((strlen(value) + 1)*sizeof(char));
13121312
if (NULL != buf) {

0 commit comments

Comments
 (0)