ASPLes / nopoll

OpenSource WebSocket toolkit
http://www.aspl.es/nopoll
GNU Lesser General Public License v2.1
124 stars 74 forks source link

Wnerror "unitialised" when building for Windows #37

Closed dspname closed 6 years ago

dspname commented 6 years ago

Hello,

noPollCtx * result in line 69 in _nopollctx.c is used unitialised. As autogen.sh uses -Werror on automake, compiling for Win32 will fail because of the use in line 72 _if (! nopoll_win32init (result)) { right after. Therefore, result should be initialised with noPollCtx* result = NULL, I'd say.

francisbrosnan commented 6 years ago

Thanks @dspname I've moved win32 initialization after nopoll_new is created. Best Regards.