]> granicus.if.org Git - curl/commit
memcmp: avoid doing single char memcmp
authorDaniel Gustafsson <daniel@yesql.se>
Sun, 20 Jan 2019 20:59:04 +0000 (21:59 +0100)
committerDaniel Gustafsson <daniel@yesql.se>
Sun, 20 Jan 2019 20:59:04 +0000 (21:59 +0100)
commitf0b2c13a9eb897374cc5d8f6f94d434820b01f9e
tree74a5464875cc14ec5678ec19d130e04408ed979b
parent6bd5bc97f4d28e8d1b5593d1678ab2dbf23f34bf
memcmp: avoid doing single char memcmp

There is no real gain in performing memcmp() comparisons on single
characters, so change these to array subscript inspections which
saves a call and makes the code clearer.

Closes #3486
Reviewed-by: Daniel Stenberg <daniel@haxx.se>
Reviewed-by: Jay Satiro <raysatiro@yahoo.com>
lib/imap.c
lib/pop3.c