diff options
author | Max Kellermann <max@duempel.org> | 2013-10-14 22:00:21 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-10-14 22:00:21 +0200 |
commit | 6fd481df978ad4666780ef838e6c8540f6ea190f (patch) | |
tree | e437903388be90df8a92c58c05af8f4f51c7e8e1 /src/input/CurlInputPlugin.cxx | |
parent | b915e433911b4597626c721a8ae4a6e9dae6ac5a (diff) | |
download | mpd-6fd481df978ad4666780ef838e6c8540f6ea190f.tar.gz mpd-6fd481df978ad4666780ef838e6c8540f6ea190f.tar.xz mpd-6fd481df978ad4666780ef838e6c8540f6ea190f.zip |
Mapper, ...: use memcmp() instead of strncmp() where appropriate
Micro-optimization.
Diffstat (limited to 'src/input/CurlInputPlugin.cxx')
-rw-r--r-- | src/input/CurlInputPlugin.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/input/CurlInputPlugin.cxx b/src/input/CurlInputPlugin.cxx index b707da2f0..d972ff3a7 100644 --- a/src/input/CurlInputPlugin.cxx +++ b/src/input/CurlInputPlugin.cxx @@ -1084,8 +1084,8 @@ static struct input_stream * input_curl_open(const char *url, Mutex &mutex, Cond &cond, Error &error) { - if ((strncmp(url, "http://", 7) != 0) && - (strncmp(url, "https://", 8) != 0)) + if (memcmp(url, "http://", 7) != 0 && + memcmp(url, "https://", 8) != 0) return NULL; struct input_curl *c = new input_curl(url, mutex, cond); |