Rake out the weakened mortar joint and replace it with new mortar. One might want to consider getting professional help if they are not strongly convinced or unaware of how to do it themselves.