From: Ian Lance Taylor Date: Mon, 4 Feb 2008 22:44:35 +0000 (+0000) Subject: Treat an empty directory argument as the current directory. X-Git-Tag: gdb_6_8-2008-02-26-branchpoint~205 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=15893b88b0e64f14a08e952a07d3e517c7926c8e;p=external%2Fbinutils.git Treat an empty directory argument as the current directory. --- 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