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

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

View File

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

View File

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

View File

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