diff --git a/src/broker/cas_cgw.c b/src/broker/cas_cgw.c index 72dcda28674..89a99fb2f55 100644 --- a/src/broker/cas_cgw.c +++ b/src/broker/cas_cgw.c @@ -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); }