Chozo hit the nail on the head. I am not a dog owner and I have never had a problem with a strange dog. Most of the time when one comes up to me, it is just wanting to say hello.
The Golden Rule applies to Dogs just as much as it does to humans, "Do unto others as you would have them do unto you."