Add missing brackets to multi-statement if in SaveServerAuthorizations

From Alan Coopersmith in xdm.
This commit is contained in:
matthieu 2018-05-06 15:18:42 +00:00
parent c4e3a279a9
commit fc7d5d1825

View File

@ -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.
*/