fix bug for nullptr in qfind
authorHaocheng Zhang <wqst@fb.com>
Wed, 15 Jun 2016 03:25:09 +0000 (20:25 -0700)
committerFacebook Github Bot 7 <facebook-github-bot-7-bot@fb.com>
Wed, 15 Jun 2016 03:38:27 +0000 (20:38 -0700)
commit1de25658576a9d1fb131722f67925039a14c5390
treece5419984f348b8ae1e45f7b79ea70fbd5bf5ae4
parentbd6447c62a08f3025649803c570250a50c5065c4
fix bug for nullptr in qfind

Summary: Fix bug for passing null pointer to memchr function, which requires the first argument to never be null.

Reviewed By: luciang

Differential Revision: D3432130

fbshipit-source-id: 419924dd214d9f641d3d46335dae6abbe44ca751
folly/Range.h