Fix comparison which should be a dereference
Merge pull request #2212 from asmaloney/compare_deref

Fix comparison which should be a dereference