# HG changeset patch # User jbe # Date 1428177093 -7200 # Node ID 460e457730a2652565a97ec2a32ad4d810776961 # Parent 7764a1fd85e7f2325eba9fc14ed044c7011b0586 Another initialization to avoid (wrong) compiler warning diff -r 7764a1fd85e7 -r 460e457730a2 moonbridge.c --- a/moonbridge.c Sat Apr 04 21:50:37 2015 +0200 +++ b/moonbridge.c Sat Apr 04 21:51:33 2015 +0200 @@ -2424,6 +2424,7 @@ if (fcntl(fd, F_SETFL, flags | O_NONBLOCK) == -1) goto moonbr_io_xread_impl_error; } else { fd = -1; /* avoids compiler warning */ + flags = 0; /* avoids compiler warning */ } if (!maxlen) maxlen = -1; terminator = terminatorlen ? terminatorstr[0] : -1;