diff options
author | Ian Lance Taylor <iant@google.com> | 2008-02-04 22:44:35 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@google.com> | 2008-02-04 22:44:35 +0000 |
commit | 15893b88b0e64f14a08e952a07d3e517c7926c8e (patch) | |
tree | 0bafc37710491ff424e2da7e16e1e11b61668dff | |
parent | 32b1cf221d31145275866912242137b38654d099 (diff) | |
download | gdb-15893b88b0e64f14a08e952a07d3e517c7926c8e.zip gdb-15893b88b0e64f14a08e952a07d3e517c7926c8e.tar.gz gdb-15893b88b0e64f14a08e952a07d3e517c7926c8e.tar.bz2 |
Treat an empty directory argument as the current directory.
-rw-r--r-- | gold/options.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gold/options.h b/gold/options.h index 47623dc..aa51126 100644 --- a/gold/options.h +++ b/gold/options.h @@ -73,7 +73,10 @@ class Search_directory // This is the usual constructor. Search_directory(const char* name, bool put_in_sysroot) : name_(name), put_in_sysroot_(put_in_sysroot), is_in_sysroot_(false) - { gold_assert(!this->name_.empty()); } + { + if (this->name_.empty()) + this->name_ = "."; + } // This is called if we have a sysroot. The sysroot is prefixed to // any entries for which put_in_sysroot_ is true. is_in_sysroot_ is |