1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

dtlogin: Resolve uninitialized warnings

This commit is contained in:
Peter Howkins 2021-12-22 01:19:59 +00:00 committed by Jon Trulson
parent 72b59ec869
commit bbaaf942be
4 changed files with 7 additions and 8 deletions

View file

@ -667,7 +667,7 @@ MakeDialog( DialogType dtype )
char buffer[128];
char *str;
Widget w, text;
Widget w = NULL, text;
Dimension txt_width, txt_height;
XmString ok, cancel, nw, sv;

View file

@ -365,7 +365,7 @@ void
ManageSession( struct display *d )
{
int pid;
Window root;
Window root = NULL;
/* Display *dpy; */
#ifdef BYPASSLOGIN
char *BypassUsername;
@ -1199,8 +1199,6 @@ StartClient( struct verify_info *verify, struct display *d, int *pidp )
long ngroups, groups[NGROUPS];
#endif /* __AFS */
waitType status;
if (verify->argv) {
Debug ("StartSession %s: ", verify->argv[0]);
for (f = verify->argv; *f; f++) {
@ -1283,7 +1281,7 @@ StartClient( struct verify_info *verify, struct display *d, int *pidp )
#endif
#if !defined(sun) && (!defined(CSRG_BASED) || defined(HAS_PAM_LIBRARY))
Account(d, user, NULL, getpid(), USER_PROCESS, status);
Account(d, user, NULL, getpid(), USER_PROCESS, 0);
#endif
#ifdef AIXV3

View file

@ -1791,7 +1791,7 @@ SetDtLabelAndIcon(void)
static void
_DtShowDialog( DialogType dtype, XmString msg)
{
Widget *w;
Widget *w = NULL;
#ifdef VG_TRACE
vg_TRACE_EXECUTION("main: entered _DtShowDialog ...");
@ -1804,6 +1804,7 @@ _DtShowDialog( DialogType dtype, XmString msg)
case help: w = &help_message; break;
case hostname: w = &hostname_message; break;
case help_chooser: w = &help_message; break;
default: return;
}
if (*w == NULL)

View file

@ -554,8 +554,8 @@ forward_respond (struct sockaddr *from, int fromlen, int length)
ARRAY8 clientAddress;
ARRAY8 clientPort;
ARRAYofARRAY8 authenticationNames;
struct sockaddr *client;
int clientlen;
struct sockaddr *client = NULL;
int clientlen = 0;
int expectedLen;
int i;