aboutsummaryrefslogtreecommitdiff
path: root/elf/dl-lookup.c
diff options
context:
space:
mode:
authorMarcus Shawcroft <marcus.shawcroft@linaro.org>2013-11-13 12:40:31 +0000
committerMarcus Shawcroft <marcus.shawcroft@linaro.org>2013-11-13 12:40:31 +0000
commit50727aa76b42c3b989a8c0612eb7f63e29aa7fec (patch)
tree498e1ceb1a7cf546318ae70f15dfceb6b6537a22 /elf/dl-lookup.c
parenta615be46758fd857872e3e2a12f1fd296bee1a7c (diff)
downloadglibc-50727aa76b42c3b989a8c0612eb7f63e29aa7fec.tar
glibc-50727aa76b42c3b989a8c0612eb7f63e29aa7fec.tar.gz
glibc-50727aa76b42c3b989a8c0612eb7f63e29aa7fec.tar.bz2
glibc-50727aa76b42c3b989a8c0612eb7f63e29aa7fec.zip
Avoid passing NULL to DSO_FILENAME.
Diffstat (limited to 'elf/dl-lookup.c')
-rw-r--r--elf/dl-lookup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/elf/dl-lookup.c b/elf/dl-lookup.c
index 39f463eae1..f869dcfa96 100644
--- a/elf/dl-lookup.c
+++ b/elf/dl-lookup.c
@@ -746,7 +746,7 @@ _dl_lookup_symbol_x (const char *undef_name, struct link_map *undef_map,
contain the needed symbol. This code is never reached
for unversioned lookups. */
assert (version != NULL);
- const char *reference_name = undef_map ? undef_map->l_name : NULL;
+ const char *reference_name = undef_map ? undef_map->l_name : "";
/* XXX We cannot translate the message. */
_dl_signal_cerror (0, DSO_FILENAME (reference_name),