Monty Taylor wrote:
> 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.
Yeah, for now. The *right* thing is replacing char *query with
std::string &query...
Monty Taylor wrote:
> 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.
Yeah, for now. The *right* thing is replacing char *query with
std::string &query...
-jay