1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-02-12 19:22:41 +00:00

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; SPC_Connection_Ptr connection=channel->connection;
protocol_request_ptr prot; protocol_request_ptr prot;
XeString junk1, junk2; XeString junk1 = NULL, junk2 = NULL;
SPC_Write_Protocol_Request(connection, channel, QUERY_LOGFILE); SPC_Write_Protocol_Request(connection, channel, QUERY_LOGFILE);
prot=SPC_Filter_Connection(connection, channel, LOGFILE_REPLY, TRUE); prot=SPC_Filter_Connection(connection, channel, LOGFILE_REPLY, TRUE);
@ -1713,7 +1713,7 @@ SPC_Validate_User(XeString hostname,
{ {
XeString username = XeString_NULL; XeString username = XeString_NULL;
uid_t this_uid; uid_t this_uid;
XeString proto_ver; XeString proto_ver = NULL;
XeString hostinfo; XeString hostinfo;
XeString path; XeString path;
protocol_request_ptr prot; protocol_request_ptr prot;

View file

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

View file

@ -1003,7 +1003,7 @@ _DtActionConverter(DtDtsDbField * fields,
char bigBuf[_DtAct_MAX_BUF_SIZE]; char bigBuf[_DtAct_MAX_BUF_SIZE];
char *buf = bigBuf; char *buf = bigBuf;
char *fileName = _DtDbPathIdToString(pathId); char *fileName = _DtDbPathIdToString(pathId);
char *actionType; char *actionType = NULL;
_DtSvcProcessLock(); _DtSvcProcessLock();
if (firstTime) if (firstTime)

View file

@ -885,7 +885,7 @@ TtRequestCallbackHandler(
int argRepType; int argRepType;
char *upttbuf; char *upttbuf;
int upttbuflen, ivalue; int upttbuflen, ivalue;
char *upVType, *upVType2; char *upVType = NULL, *upVType2 = NULL;
status = (Tt_status) tt_message_status(message); status = (Tt_status) tt_message_status(message);
@ -1174,7 +1174,7 @@ InitiateTtRequest(
ActionRequest *request ) ActionRequest *request )
{ {
CallbackData *data; CallbackData *data = NULL;
ActionPtr action = request->clonedAction; ActionPtr action = request->clonedAction;
tt_msgAttr * tt = &(action->u.tt_msg); tt_msgAttr * tt = &(action->u.tt_msg);
int i; int i;

View file

@ -961,7 +961,7 @@ ReadNextEntry(
char *start; char *start;
char *last; char *last;
char *save; char *save;
char *error_buffer; char *error_buffer = NULL;
short startDef; short startDef;
char * errorName; char * errorName;
char * version; char * version;

View file

@ -1951,7 +1951,7 @@ DtDtsSetDataType(const char *filename, const char *datatype_in, const int overid
int fd; int fd;
char *dt; char *dt;
int size; int size;
u_char *buff; u_char *buff = NULL;
struct stat file_stat; struct stat file_stat;
char *datatype = 0; char *datatype = 0;

View file

@ -196,7 +196,7 @@ _DtSetSmState(
Window smWindow, Window smWindow,
SmStateInfo *pSmStateInfo) SmStateInfo *pSmStateInfo)
{ {
int propStatus; int propStatus = Success;
PropDtSmStateInfo propSmStateInfo; PropDtSmStateInfo propSmStateInfo;
PropDtSmStateInfo *pPropSmStateInfo; PropDtSmStateInfo *pPropSmStateInfo;
Atom xaDtSmStateInfo; Atom xaDtSmStateInfo;

View file

@ -67,7 +67,7 @@ _DtPerfChkpntListenInit(Display *display, Window parentwin)
#endif #endif
{ {
Time timestamp = INVALID_TIME; Time timestamp = INVALID_TIME;
Window tmpwin; Window tmpwin = 0;
Bool bsuccess = False; Bool bsuccess = False;
_DtSvcProcessLock(); _DtSvcProcessLock();

View file

@ -110,12 +110,12 @@ GetTableIndex(
#endif /* NeedWidePrototypes */ #endif /* NeedWidePrototypes */
{ {
DtHashEntry *entries = tab->entries; DtHashEntry *entries = tab->entries;
int len, idx, i, rehash = 0; int len = 0, idx, i, rehash = 0;
char c; char c;
Signature sig = 0; Signature sig = 0;
DtHashEntry entry; DtHashEntry entry;
String s1, s2; String s1, s2;
DtHashKey compKey; DtHashKey compKey = NULL;
if (tab->keyIsString) { if (tab->keyIsString) {
s1 = (String)key; s1 = (String)key;

View file

@ -209,7 +209,7 @@ _DtMessageDialog(
int dialogType ) int dialogType )
{ {
Widget message; Widget message = NULL;
Widget widget; Widget widget;
XmString message_string; XmString message_string;
XWindowAttributes attributes; XWindowAttributes attributes;

View file

@ -290,7 +290,7 @@ _DtGetEntries(
int dosort ) int dosort )
{ {
char *line, *colon, *temp, *str, *temp2; char *line, *colon, *temp, *str, *temp2;
Entry entry; Entry entry = { NULL, NULL, 0, False };
int length; int length;
int lineno = 0; int lineno = 0;