oddly enough, yes
That's what counts. What would it have taken for you to find those other, perhaps more devious, bugs if you hadn't made a silly mistake?
I am reasonably confident that there is a memory leak in one of our background processes, and i knew debugging it in it's current form (~1300 lines of Fortran 77, ~20 years old) was going to be damn near impossible. I'm sure I haven't gotten rid of all of the problems, but it made me bite the bullet and refactor the accursed thing down to about 800 nicely indented lines using Fortran 95 features like internal functions/subroutines, using non-dotted operators (== instead of .eq.), etc. When it starts acting up again, I won't mind looking at it nearly as much, and I won't feel as bad if I need to have someone else look at it.
-Lee