Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(466)

Unified Diff: runtime/bin/extensions_linux.cc

Issue 10943002: Improve dlsym() error-detection. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/bin/extensions_android.cc ('k') | runtime/bin/extensions_macos.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/extensions_linux.cc
diff --git a/runtime/bin/extensions_linux.cc b/runtime/bin/extensions_linux.cc
index 68e2908fc33e2f277108c5646f7c1f5066e1ba5f..8066b13666dc723d230f55f90cc2f5e7cf92059e 100644
--- a/runtime/bin/extensions_linux.cc
+++ b/runtime/bin/extensions_linux.cc
@@ -16,6 +16,7 @@ void* Extensions::LoadExtensionLibrary(const char* library_path,
}
void* Extensions::ResolveSymbol(void* lib_handle, const char* symbol) {
+ dlerror();
void* result = dlsym(lib_handle, symbol);
if (dlerror() != NULL) return NULL;
return result;
« no previous file with comments | « runtime/bin/extensions_android.cc ('k') | runtime/bin/extensions_macos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698