Don't question yourself as you did good. Caring for others is very nice thing and you gave up your snack to give it to him. You're a good person. Not many would have cared about the old man.
For this type of topics I'd like to recommend you Emotions and Feelings community, or Daily Blog as OCD is for topics that don't fit in any other community.
Here's a guide I put together to help you learn about how communities work and why you should use them -> Communities Explained - Newbie Guide.
Once you posted your post in the right community, you can then cross post it to OCD community. Here's a guide about cross posting.
Please don't delete any post with the purpose of reposting it in another community as that can be considered abuse! Leave this post here, you'll get it right next time.
RE: Praising Other's Kindness And Second-Guessing Mine