Czech learner here, I struggled with this "co pít" expression until it was explained to me thus:
(affirmative): Měl co pít (he had what to drink).
(negative): Neměl co pít (he didn't have what to drink).
("co pít" doesn't change! ).
I hope this helps.