# HG changeset patch # User jbe # Date 1428177037 -7200 # Node ID 7764a1fd85e7f2325eba9fc14ed044c7011b0586 # Parent 4628be0a7b98a2a69ea5f478075969e02c0c234e Add initialization to avoid compiler warning diff -r 4628be0a7b98 -r 7764a1fd85e7 moonbridge.c --- a/moonbridge.c Sat Apr 04 21:28:30 2015 +0200 +++ b/moonbridge.c Sat Apr 04 21:50:37 2015 +0200 @@ -2422,6 +2422,8 @@ flags = fcntl(fd, F_GETFL, 0); if (flags == -1) goto moonbr_io_xread_impl_error; if (fcntl(fd, F_SETFL, flags | O_NONBLOCK) == -1) goto moonbr_io_xread_impl_error; + } else { + fd = -1; /* avoids compiler warning */ } if (!maxlen) maxlen = -1; terminator = terminatorlen ? terminatorstr[0] : -1;