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:
parent
35e94e3878
commit
b807066429
11 changed files with 15 additions and 16 deletions
|
@ -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;
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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();
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue