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;
|
||||
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;
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -1003,7 +1003,7 @@ _DtActionConverter(DtDtsDbField * fields,
|
|||
char bigBuf[_DtAct_MAX_BUF_SIZE];
|
||||
char *buf = bigBuf;
|
||||
char *fileName = _DtDbPathIdToString(pathId);
|
||||
char *actionType;
|
||||
char *actionType = NULL;
|
||||
|
||||
_DtSvcProcessLock();
|
||||
if (firstTime)
|
||||
|
|
|
@ -885,7 +885,7 @@ TtRequestCallbackHandler(
|
|||
int argRepType;
|
||||
char *upttbuf;
|
||||
int upttbuflen, ivalue;
|
||||
char *upVType, *upVType2;
|
||||
char *upVType = NULL, *upVType2 = NULL;
|
||||
|
||||
|
||||
status = (Tt_status) tt_message_status(message);
|
||||
|
@ -1174,7 +1174,7 @@ InitiateTtRequest(
|
|||
ActionRequest *request )
|
||||
|
||||
{
|
||||
CallbackData *data;
|
||||
CallbackData *data = NULL;
|
||||
ActionPtr action = request->clonedAction;
|
||||
tt_msgAttr * tt = &(action->u.tt_msg);
|
||||
int i;
|
||||
|
|
|
@ -961,7 +961,7 @@ ReadNextEntry(
|
|||
char *start;
|
||||
char *last;
|
||||
char *save;
|
||||
char *error_buffer;
|
||||
char *error_buffer = NULL;
|
||||
short startDef;
|
||||
char * errorName;
|
||||
char * version;
|
||||
|
|
|
@ -1951,7 +1951,7 @@ DtDtsSetDataType(const char *filename, const char *datatype_in, const int overid
|
|||
int fd;
|
||||
char *dt;
|
||||
int size;
|
||||
u_char *buff;
|
||||
u_char *buff = NULL;
|
||||
struct stat file_stat;
|
||||
char *datatype = 0;
|
||||
|
||||
|
|
|
@ -196,7 +196,7 @@ _DtSetSmState(
|
|||
Window smWindow,
|
||||
SmStateInfo *pSmStateInfo)
|
||||
{
|
||||
int propStatus;
|
||||
int propStatus = Success;
|
||||
PropDtSmStateInfo propSmStateInfo;
|
||||
PropDtSmStateInfo *pPropSmStateInfo;
|
||||
Atom xaDtSmStateInfo;
|
||||
|
|
|
@ -67,7 +67,7 @@ _DtPerfChkpntListenInit(Display *display, Window parentwin)
|
|||
#endif
|
||||
{
|
||||
Time timestamp = INVALID_TIME;
|
||||
Window tmpwin;
|
||||
Window tmpwin = 0;
|
||||
Bool bsuccess = False;
|
||||
|
||||
_DtSvcProcessLock();
|
||||
|
|
|
@ -110,12 +110,12 @@ GetTableIndex(
|
|||
#endif /* NeedWidePrototypes */
|
||||
{
|
||||
DtHashEntry *entries = tab->entries;
|
||||
int len, idx, i, rehash = 0;
|
||||
int len = 0, idx, i, rehash = 0;
|
||||
char c;
|
||||
Signature sig = 0;
|
||||
DtHashEntry entry;
|
||||
String s1, s2;
|
||||
DtHashKey compKey;
|
||||
DtHashKey compKey = NULL;
|
||||
|
||||
if (tab->keyIsString) {
|
||||
s1 = (String)key;
|
||||
|
|
|
@ -209,7 +209,7 @@ _DtMessageDialog(
|
|||
int dialogType )
|
||||
|
||||
{
|
||||
Widget message;
|
||||
Widget message = NULL;
|
||||
Widget widget;
|
||||
XmString message_string;
|
||||
XWindowAttributes attributes;
|
||||
|
|
|
@ -290,7 +290,7 @@ _DtGetEntries(
|
|||
int dosort )
|
||||
{
|
||||
char *line, *colon, *temp, *str, *temp2;
|
||||
Entry entry;
|
||||
Entry entry = { NULL, NULL, 0, False };
|
||||
int length;
|
||||
int lineno = 0;
|
||||
|
||||
|
|
Loading…
Reference in a new issue