Fix segv on error during early startup.

SVN revision: 22210
This commit is contained in:
Kim Woelders 2006-04-18 23:45:34 +00:00
parent aaf3876519
commit ac46876cd6
1 changed files with 3 additions and 0 deletions

View File

@ -406,6 +406,9 @@ EHintsSetDeskInfo(void)
int i, ax, ay, n_desks;
unsigned int *c;
if (!DesksGetCurrent()) /* Quit if current desk isn't assigned yet */
return;
n_desks = DesksGetNumber();
if (n_desks <= 0)
return;