fix infinite loop in windows when trying to read json variant from empty file

This commit is contained in:
dnotestein 2014-02-27 21:56:46 -05:00
parent 5f36e9acac
commit 503b9033e8

View file

@ -338,6 +338,7 @@ namespace fc
case 'f':
return token_from_stream( in );
case 0x04: // ^D end of transmission
case EOF:
FC_THROW_EXCEPTION( eof_exception, "unexpected end of file" );
default:
// ilog( "unhandled char '${c}' int ${int}", ("c", fc::string( &c, 1 ) )("int", int(c)) );