moonbridge

changeset 72:7764a1fd85e7

Add initialization to avoid compiler warning
author jbe
date Sat Apr 04 21:50:37 2015 +0200 (2015-04-04)
parents 4628be0a7b98
children 460e457730a2
files moonbridge.c
line diff
     1.1 --- a/moonbridge.c	Sat Apr 04 21:28:30 2015 +0200
     1.2 +++ b/moonbridge.c	Sat Apr 04 21:50:37 2015 +0200
     1.3 @@ -2422,6 +2422,8 @@
     1.4      flags = fcntl(fd, F_GETFL, 0);
     1.5      if (flags == -1) goto moonbr_io_xread_impl_error;
     1.6      if (fcntl(fd, F_SETFL, flags | O_NONBLOCK) == -1) goto moonbr_io_xread_impl_error;
     1.7 +  } else {
     1.8 +    fd = -1;  /* avoids compiler warning */
     1.9    }
    1.10    if (!maxlen) maxlen = -1;
    1.11    terminator = terminatorlen ? terminatorstr[0] : -1;

Impressum / About Us