Skip to content

Commit

Permalink
Merge pull request #329 from sstsimulator/devel
Browse files Browse the repository at this point in the history
Automatically Merged using SST Master Branch Merger
  • Loading branch information
sst-autotester authored Dec 7, 2017
2 parents 62a1d95 + ffef847 commit 4131ddd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/sst/core/bootshared.cc
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ void update_env_var(const char* name, const int UNUSED(verbose), char* UNUSED(ar
char* new_ld_path = (char*) malloc(sizeof(char) * 32768);
char* new_ld_path_copy = (char*) malloc(sizeof(char) * 32768);

for(size_t i = 0; i < 32768; ++i) {
new_ld_path[i] = '\0';
new_ld_path_copy[i] = '\0';
}

if(NULL != current_ld_path) {
sprintf(new_ld_path, "%s", current_ld_path);
}
Expand All @@ -35,7 +40,7 @@ void update_env_var(const char* name, const int UNUSED(verbose), char* UNUSED(ar

for(auto groupItr = groups.begin(); groupItr != groups.end(); groupItr++) {
SST::Core::Environment::EnvironmentConfigGroup* currentGroup = envConfig->getGroupByName(*groupItr);

std::set<std::string> keys = currentGroup->getKeys();

for(auto configItr = keys.begin(); configItr != keys.end(); configItr++) {
Expand Down

0 comments on commit 4131ddd

Please sign in to comment.