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.
|
||||
*/
|
||||
if (auths[i]->data_length > 0)
|
||||
{
|
||||
if (!XauWriteAuth (auth_file, auths[i]))
|
||||
{
|
||||
Debug ("XauWriteAuth() failed\n");
|
||||
@ -359,6 +360,7 @@ SaveServerAuthorizations (
|
||||
ret = FALSE;
|
||||
}
|
||||
}
|
||||
}
|
||||
/*
|
||||
* XXX: This is not elegant, but stdio has no truncation function.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user