diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2016-11-29 18:33:46 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2016-11-29 18:33:46 -0800 |
commit | 07c594ebddbbe3fef8ba25fef19980c3e7e5f164 (patch) | |
tree | 88d61e2a19d4b5ff9b8e423b844b61b8cad09f7d /011load.cc | |
parent | c76b0066fb2ae01a28630662cb04a043cc5841cb (diff) | |
download | mu-07c594ebddbbe3fef8ba25fef19980c3e7e5f164.tar.gz |
3701
Gracefully handle yet another typo.
Diffstat (limited to '011load.cc')
-rw-r--r-- | 011load.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/011load.cc b/011load.cc index d3f938ca..451521f4 100644 --- a/011load.cc +++ b/011load.cc @@ -177,7 +177,7 @@ string next_word(istream& in) { } bool is_label_word(const string& word) { - assert(!word.empty()); + if (word.empty()) return false; // error raised elsewhere return !isalnum(word.at(0)) && string("$_*@&,=-[]()").find(word.at(0)) == string::npos; } |