Comment 2 for bug 421345

Revision history for this message
Monty Taylor (mordred) wrote : Re: [Bug 421345] Re: Crash using query logging and use <dbname> statement

fmpwizard wrote:
> I thought a little more about it, and a better fix could be to modify
> getQueryLength() to check is query != NULL, and then decide to return
> strlen or 0.
>
> I like this solution better because it allows anyone to call
> getQueryLength() without having to worry about query being NULL. (And it
> works :) )

I think this is the right thing.