8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 22:43:04 +01:00

Put an extra check. Does anyone think that the condition should be "length > 0" instead?

This commit is contained in:
dimitr 2008-04-04 16:59:01 +00:00
parent 82273a3c82
commit 1dcf8baa39

View File

@ -1711,6 +1711,7 @@ dsql_par* MAKE_parameter(dsql_msg* message, bool sqlda_flag, bool null_flag,
**/
dsql_str* MAKE_string(const char* str, int length)
{
fb_assert(length >= 0);
return MAKE_tagged_string(str, length, NULL);
}