Add missing brackets to multi-statement if in SaveServerAuthorizations
From Alan Coopersmith in xdm.
This commit is contained in:
parent
c4e3a279a9
commit
fc7d5d1825
@ -348,6 +348,7 @@ SaveServerAuthorizations (
|
|||||||
* to the auth file so xrdb and setup programs don't fail.
|
* to the auth file so xrdb and setup programs don't fail.
|
||||||
*/
|
*/
|
||||||
if (auths[i]->data_length > 0)
|
if (auths[i]->data_length > 0)
|
||||||
|
{
|
||||||
if (!XauWriteAuth (auth_file, auths[i]))
|
if (!XauWriteAuth (auth_file, auths[i]))
|
||||||
{
|
{
|
||||||
Debug ("XauWriteAuth() failed\n");
|
Debug ("XauWriteAuth() failed\n");
|
||||||
@ -358,6 +359,7 @@ SaveServerAuthorizations (
|
|||||||
err = errno;
|
err = errno;
|
||||||
ret = FALSE;
|
ret = FALSE;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
* XXX: This is not elegant, but stdio has no truncation function.
|
* XXX: This is not elegant, but stdio has no truncation function.
|
||||||
|
Loading…
Reference in New Issue
Block a user