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:
parent
72b59ec869
commit
bbaaf942be
4 changed files with 7 additions and 8 deletions
|
@ -667,7 +667,7 @@ MakeDialog( DialogType dtype )
|
||||||
char buffer[128];
|
char buffer[128];
|
||||||
char *str;
|
char *str;
|
||||||
|
|
||||||
Widget w, text;
|
Widget w = NULL, text;
|
||||||
Dimension txt_width, txt_height;
|
Dimension txt_width, txt_height;
|
||||||
XmString ok, cancel, nw, sv;
|
XmString ok, cancel, nw, sv;
|
||||||
|
|
||||||
|
|
|
@ -365,7 +365,7 @@ void
|
||||||
ManageSession( struct display *d )
|
ManageSession( struct display *d )
|
||||||
{
|
{
|
||||||
int pid;
|
int pid;
|
||||||
Window root;
|
Window root = NULL;
|
||||||
/* Display *dpy; */
|
/* Display *dpy; */
|
||||||
#ifdef BYPASSLOGIN
|
#ifdef BYPASSLOGIN
|
||||||
char *BypassUsername;
|
char *BypassUsername;
|
||||||
|
@ -1199,8 +1199,6 @@ StartClient( struct verify_info *verify, struct display *d, int *pidp )
|
||||||
long ngroups, groups[NGROUPS];
|
long ngroups, groups[NGROUPS];
|
||||||
#endif /* __AFS */
|
#endif /* __AFS */
|
||||||
|
|
||||||
waitType status;
|
|
||||||
|
|
||||||
if (verify->argv) {
|
if (verify->argv) {
|
||||||
Debug ("StartSession %s: ", verify->argv[0]);
|
Debug ("StartSession %s: ", verify->argv[0]);
|
||||||
for (f = verify->argv; *f; f++) {
|
for (f = verify->argv; *f; f++) {
|
||||||
|
@ -1283,7 +1281,7 @@ StartClient( struct verify_info *verify, struct display *d, int *pidp )
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(sun) && (!defined(CSRG_BASED) || defined(HAS_PAM_LIBRARY))
|
#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
|
#endif
|
||||||
|
|
||||||
#ifdef AIXV3
|
#ifdef AIXV3
|
||||||
|
|
|
@ -1791,7 +1791,7 @@ SetDtLabelAndIcon(void)
|
||||||
static void
|
static void
|
||||||
_DtShowDialog( DialogType dtype, XmString msg)
|
_DtShowDialog( DialogType dtype, XmString msg)
|
||||||
{
|
{
|
||||||
Widget *w;
|
Widget *w = NULL;
|
||||||
|
|
||||||
#ifdef VG_TRACE
|
#ifdef VG_TRACE
|
||||||
vg_TRACE_EXECUTION("main: entered _DtShowDialog ...");
|
vg_TRACE_EXECUTION("main: entered _DtShowDialog ...");
|
||||||
|
@ -1804,6 +1804,7 @@ _DtShowDialog( DialogType dtype, XmString msg)
|
||||||
case help: w = &help_message; break;
|
case help: w = &help_message; break;
|
||||||
case hostname: w = &hostname_message; break;
|
case hostname: w = &hostname_message; break;
|
||||||
case help_chooser: w = &help_message; break;
|
case help_chooser: w = &help_message; break;
|
||||||
|
default: return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (*w == NULL)
|
if (*w == NULL)
|
||||||
|
|
|
@ -554,8 +554,8 @@ forward_respond (struct sockaddr *from, int fromlen, int length)
|
||||||
ARRAY8 clientAddress;
|
ARRAY8 clientAddress;
|
||||||
ARRAY8 clientPort;
|
ARRAY8 clientPort;
|
||||||
ARRAYofARRAY8 authenticationNames;
|
ARRAYofARRAY8 authenticationNames;
|
||||||
struct sockaddr *client;
|
struct sockaddr *client = NULL;
|
||||||
int clientlen;
|
int clientlen = 0;
|
||||||
int expectedLen;
|
int expectedLen;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue