From e7d2ab05908cd763f7d19c12119f780817540c48 Mon Sep 17 00:00:00 2001 From: Charlie Fenton Date: Tue, 10 Nov 2009 22:52:36 +0000 Subject: [PATCH] Mac installer: fix crash bug in AddRemoveUser utility svn path=/trunk/boinc/; revision=19530 --- checkin_notes | 6 ++++++ mac_installer/AddRemoveUser.cpp | 1 + 2 files changed, 7 insertions(+) diff --git a/checkin_notes b/checkin_notes index db28d76a27..3739668e6e 100644 --- a/checkin_notes +++ b/checkin_notes @@ -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 diff --git a/mac_installer/AddRemoveUser.cpp b/mac_installer/AddRemoveUser.cpp index 68f201baf4..160f515eb2 100644 --- a/mac_installer/AddRemoveUser.cpp +++ b/mac_installer/AddRemoveUser.cpp @@ -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) {