Skip to content

Commit

Permalink
Remove cruft and add invalid pair message
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamSimpson committed Aug 8, 2017
1 parent 981b2f5 commit bfac496
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/dl-intercept.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ extern "C" char *la_objsearch(const char *name, uintptr_t *cookie, unsigned int
// If a searched name matches a key, return the mapped value
// If the key is an absolute filepath the loader will not search anywhere else
if(obj_name.find(kv.first) != std::string::npos) {
const char *blarg = std::getenv("LD_LIBRARY_PATH");
return (char*)kv.second.c_str();
}
}
Expand Down Expand Up @@ -83,6 +82,9 @@ static void process_environment_variables() {
// Place substitutions into map
substitutions[split_pair.front()] = split_pair.back();
}
else {
std::cout<<"Formatting error in substitution pair: "<<pair<<std::endl;
}
}
}
}
Expand Down

0 comments on commit bfac496

Please sign in to comment.