Mac installer: fix crash bug in AddRemoveUser utility

svn path=/trunk/boinc/; revision=19530
This commit is contained in:
Charlie Fenton 2009-11-10 22:52:36 +00:00
parent 3f084596e0
commit e7d2ab0590
2 changed files with 7 additions and 0 deletions

View File

@ -9020,3 +9020,9 @@ David 10 Nov 2009
sched/
sched_send.cpp
Charlie 17 Sept 2009
- Mac installer: fix crash bug in AddRemoveUser utility.
mac_installer/
AddRemoveUser.cpp

View File

@ -192,6 +192,7 @@ void SetLoginItem(Boolean addLogInItem){
for (Counter = NumberOfLoginItems ; Counter > 0 ; Counter--)
{
p = ReturnLoginItemPropertyAtIndex(kCurrentUser, kApplicationNameInfo, Counter-1);
if (p == NULL) continue;
q = p;
while (*q)
{