diff --git a/setup/build.py b/setup/build.py index 2ad75bee94..6bd9b43452 100644 --- a/setup/build.py +++ b/setup/build.py @@ -276,7 +276,7 @@ class Build(Command): parser.add_option('--debug', default=False, action='store_true', help='Build in debug mode') parser.add_option('--sanitize', default=False, action='store_true', - help='Build with sanitization support. Run with LD_PREFLOAD=$(gcc -print-file-name=libasan.so)') + help='Build with sanitization support. Run with LD_PRELOAD=$(gcc -print-file-name=libasan.so)') def run(self, opts): from setup.parallel_build import parallel_build, create_job diff --git a/src/calibre/srv/fast_css_transform.cpp b/src/calibre/srv/fast_css_transform.cpp index b31fc1e062..8fa7568cfe 100644 --- a/src/calibre/srv/fast_css_transform.cpp +++ b/src/calibre/srv/fast_css_transform.cpp @@ -737,7 +737,6 @@ class TokenQueue { class Parser { private: enum class ParseState : unsigned { - normal, escape, comment, string, @@ -1147,6 +1146,7 @@ class Parser { void dispatch_current_char() { write_to_output(ch); + if (!states.size()) { handle_normal(); return; } switch (states.top()) { case ParseState::comment: handle_comment(); break; @@ -1174,8 +1174,6 @@ class Parser { handle_url_after_string(); break; case ParseState::at_keyword: handle_at_keyword(); break; - case ParseState::normal: - handle_normal(); break; } prev_ch = ch; }