jscript: Change prototype of jsstr_alloc_buf and fix some error handling issues.
Sebastian Lackner
sebastian at fds-team.de
Wed Sep 7 03:44:37 CDT 2016
On 07.09.2016 10:34, Jacek Caban wrote:
> Hi Sebastian,
>
> The patch looks mostly good, but I get a compiler warning (a false one,
> but still):
>
> In file included from jsval.h:22:0,
> from jscript.h:377,
> from array.c:25:
> array.c: In function ‘array_join’:
> jsstr.h:109:7: warning: ‘ret’ may be used uninitialized in this function
> [-Wmaybe-uninitialized]
> if(!--str->ref)
> ^
> array.c:243:25: note: ‘ret’ was declared here
> jsstr_t **str_tab, *ret;
> ^
>
> Thanks,
> Jacek
>
>
Thanks, I didn't encounter that with my compiler (GCC 6.1.1). I've sent an
updated version.
More information about the wine-devel
mailing list