diff options
author | Max Kellermann <max@duempel.org> | 2014-08-07 15:05:27 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-08-07 16:08:02 +0200 |
commit | db6db517424e09bab9a12934e9df6807a7049926 (patch) | |
tree | 6525302356ec79acb6bebd179a13b760b8dcb279 /src/client/ClientRead.cxx | |
parent | 981be7956b86c4bcf449ff87082f422721a6e8c3 (diff) | |
download | mpd-db6db517424e09bab9a12934e9df6807a7049926.tar.gz mpd-db6db517424e09bab9a12934e9df6807a7049926.tar.xz mpd-db6db517424e09bab9a12934e9df6807a7049926.zip |
util/CharUtil: add IsWhitespaceFast()
Diffstat (limited to 'src/client/ClientRead.cxx')
-rw-r--r-- | src/client/ClientRead.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/ClientRead.cxx b/src/client/ClientRead.cxx index 1ec6d29d5..ae8eda8bb 100644 --- a/src/client/ClientRead.cxx +++ b/src/client/ClientRead.cxx @@ -39,7 +39,7 @@ Client::OnSocketInput(void *data, size_t length) BufferedSocket::ConsumeInput(newline + 1 - p); /* skip whitespace at the end of the line */ - while (newline > p && IsWhitespaceOrNull(newline[-1])) + while (newline > p && IsWhitespaceFast(newline[-1])) --newline; /* terminate the string at the end of the line */ |