Initialized variable hasBytesAvailable to fix a warning for OS X target.