add parentheses around '&&'

This silences an annoying gcc warning.