I vaguely remember a quote from, IIRC Kernighan. Something along the lines of:
when you find a bug, fix all occurrences of it
I think it was either in the "Practice of Programming" or "The C programming language."
And, IIRC, it was in the context of logical errors, so did not presume one was not following DRY.
Does anyone recall that and know where I might find it?
I'm writing slides for a talk, so would like to have the exact wording in context which is probably pithier than my vague recollection.