dtm: (Default)
dtm ([personal profile] dtm) wrote2003-10-02 10:41 am
Entry tags:

Somewhere, someone is saying "D'oh"

So we have some code that loads data from one place to another place, and I'm trying to figure out why when this code flags an error, it appears that the bad data is still getting loaded, and I discover this:
> grep -n haveError read.cpp
211: int haveError = 0;
228: haveError = 1;

It's awfully hard for a variable that's never checked to affect program execution...

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting