Skip to content

Commit

Permalink
commented some code
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@2456 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
x02lucpo committed Jul 24, 2006
1 parent c24aae5 commit ce2d8ad
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Compiler/runtime/settingsimpl.c
Expand Up @@ -88,13 +88,17 @@ RML_BEGIN_LABEL(Settings__setInstallationDirectoryPath)
}
memcpy(installationDirectoryPath,command,strlen(command)+1);

/* create a str of the form: OPENMODELICAHOME=<PATH>*/
omhome = (char*)malloc(strlen(command)+1+18);
if (omhome == NULL) {
RML_TAILCALLK(rmlFC);
}
strncpy(omhome,"OPENMODELICAHOME=",17);
omhome[17]='\0';
strncat(omhome,command,strlen(command));
/*set the env-var to created string
this is useful when scripts and clients started
by omc wants to use OPENMODELICAHOME*/
if( _putenv(omhome) != 0){
RML_TAILCALLK(rmlFC);
}
Expand Down

0 comments on commit ce2d8ad

Please sign in to comment.