fd needs to be initialized in order to compile (#150)

Co-authored-by: akuker <akuker@gmail.com>
This commit is contained in:
akuker
2021-07-23 19:30:56 -05:00
committed by GitHub
parent 863feed611
commit 55ec2291ef

View File

@@ -29,7 +29,7 @@ using namespace rascsi_interface;
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
int SendCommand(const string& hostname, const PbCommand& command) int SendCommand(const string& hostname, const PbCommand& command)
{ {
int fd; int fd = -1;
try { try {
struct hostent *host = gethostbyname(hostname.c_str()); struct hostent *host = gethostbyname(hostname.c_str());