commit | 9852fba98587c914113024ecc514ae3576c7b8de | [log] [tgz] |
---|---|---|
author | Treehugger Robot <treehugger-gerrit@google.com> | Sat Apr 15 22:30:57 2017 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Sat Apr 15 22:30:58 2017 +0000 |
tree | 745f815cca3ff05380cbe4ef5281609483b39d25 | |
parent | e4e69a174a0b4980eaff49c55c39b476cbe9b73e [diff] | |
parent | 295082b3af2042e52ce44aa75c90755ac97bc4aa [diff] |
Merge "Avoid "D linker : (null)" with debug.ld.all for dlerror."
diff --git a/linker/dlfcn.cpp b/linker/dlfcn.cpp index 96dd477..0bc5a31 100644 --- a/linker/dlfcn.cpp +++ b/linker/dlfcn.cpp
@@ -48,7 +48,7 @@ char* old_value = *dlerror_slot; *dlerror_slot = new_value; - LD_LOG(kLogErrors, "%s\n", new_value); + if (new_value != nullptr) LD_LOG(kLogErrors, "dlerror set to \"%s\"", new_value); return old_value; }