aboutsummaryrefslogtreecommitdiff
path: root/gold/options.h
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2021-10-20 10:09:57 +1030
committerAlan Modra <amodra@gmail.com>2021-10-21 07:54:27 +1030
commit068a039b8bd7c7386bb0d88f0ae245b0fe4132e9 (patch)
tree8e486ad496107538d58b7dfc2fb0e0a3c7173ae6 /gold/options.h
parentc7fdac09d919aaf86d302e6c622de6ee000c1b7c (diff)
downloadgdb-068a039b8bd7c7386bb0d88f0ae245b0fe4132e9.zip
gdb-068a039b8bd7c7386bb0d88f0ae245b0fe4132e9.tar.gz
gdb-068a039b8bd7c7386bb0d88f0ae245b0fe4132e9.tar.bz2
PR28417, std::string no longer allows accepting nullptr_t
PR 28417 * incremental.cc (Sized_relobj_incr::do_section_name): Avoid std:string undefined behaviour. * options.h (Search_directory::Search_directory): Likewise.
Diffstat (limited to 'gold/options.h')
-rw-r--r--gold/options.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gold/options.h b/gold/options.h
index 757ebf1..47299a3 100644
--- a/gold/options.h
+++ b/gold/options.h
@@ -611,7 +611,7 @@ class Search_directory
// We need a default constructor because we put this in a
// std::vector.
Search_directory()
- : name_(NULL), put_in_sysroot_(false), is_in_sysroot_(false)
+ : name_(), put_in_sysroot_(false), is_in_sysroot_(false)
{ }
// This is the usual constructor.