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:
parent
82273a3c82
commit
1dcf8baa39
@ -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)
|
dsql_str* MAKE_string(const char* str, int length)
|
||||||
{
|
{
|
||||||
|
fb_assert(length >= 0);
|
||||||
return MAKE_tagged_string(str, length, NULL);
|
return MAKE_tagged_string(str, length, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user