libdtsvc: Resolve Uninitialized warnings

This commit is contained in:
Peter Howkins
2021-12-19 04:06:45 +00:00
committed by Jon Trulson
parent 35e94e3878
commit b807066429
11 changed files with 15 additions and 16 deletions

View File

@@ -1658,7 +1658,7 @@ int SPC_Query_Logfile(SPC_Channel_Ptr channel)
{
SPC_Connection_Ptr connection=channel->connection;
protocol_request_ptr prot;
XeString junk1, junk2;
XeString junk1 = NULL, junk2 = NULL;
SPC_Write_Protocol_Request(connection, channel, QUERY_LOGFILE);
prot=SPC_Filter_Connection(connection, channel, LOGFILE_REPLY, TRUE);
@@ -1713,7 +1713,7 @@ SPC_Validate_User(XeString hostname,
{
XeString username = XeString_NULL;
uid_t this_uid;
XeString proto_ver;
XeString proto_ver = NULL;
XeString hostinfo;
XeString path;
protocol_request_ptr prot;

View File

@@ -203,7 +203,7 @@ void SPC_XtAddInput(SPC_Channel_Ptr channel,
SPC_Callback_Condition condition)
/*-----------------------------------------------------------------------+*/
{
SbInputId id;
SbInputId id = 0;
switch(condition) {
@@ -224,8 +224,7 @@ void SPC_XtAddInput(SPC_Channel_Ptr channel,
else
id = (*SbAddException_hookfn)(fd, handler, channel);
break;
}
}
*id_addr=SPC_AddInput(fd, condition, id);
}