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

@@ -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)

View File

@@ -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;

View File

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

View File

@@ -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;

View File

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