Skip to content

Commit

Permalink
[CBRD-25022] Error representing empty string as NULL character in win…
Browse files Browse the repository at this point in the history
…dows (#4715)

http://jira.cubrid.org/browse/CBRD-25022

When reading an empty string in Windows ODBC, it should be expressed as '', but it is expressed as NULL.
  • Loading branch information
airnet73 authored Sep 26, 2023
1 parent 7af17a1 commit bd31bd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/broker/cas_cgw.c
Original file line number Diff line number Diff line change
Expand Up @@ -2628,7 +2628,7 @@ cgw_unicode_to_utf8 (wchar_t * in_src, int in_size, char **out_target, int *out_
return (-1);
}

if (in_size <= 0)
if (in_size < 0)
{
return (-1);
}
Expand Down

0 comments on commit bd31bd5

Please sign in to comment.