# HG changeset patch # User jbe # Date 1435000637 -7200 # Node ID 7967c1e4f6d16b3fee61b7203c4e34eeb4a73ebd # Parent 5f529cb9b5c15c2a13eeffa40521bc626add9d07 Avoid compiler warnings on GNU/Linux (fix) diff -r 5f529cb9b5c1 -r 7967c1e4f6d1 moonbridge_io.c --- a/moonbridge_io.c Mon Jun 22 21:15:48 2015 +0200 +++ b/moonbridge_io.c Mon Jun 22 21:17:17 2015 +0200 @@ -182,8 +182,8 @@ moonbr_io_handle_t *handle; lua_Integer maxread; const char *terminatorstr; - size_t terminatorlen = 0; /* initialize to avoid compiler warning */ - char terminator; + size_t terminatorlen; + char terminator = 0; /* initialize to avoid compiler warning */ luaL_Buffer luabuf; size_t luabufcnt = 0; int remaining;