Bug 329156 - "Updater should fail rather than report success when update.manifest is empty". r=darin.

This commit is contained in:
bent.mozilla%gmail.com 2006-04-06 17:13:50 +00:00
Родитель eca8e33617
Коммит d209a63305
1 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

@ -1153,6 +1153,12 @@ ActionList::Append(Action *action)
int
ActionList::Prepare()
{
// If the action list is empty then we should fail in order to signal that
// something has gone wrong. Otherwise we report success when nothing is
// actually done. See bug 327140.
if (mCount == 0)
return UNEXPECTED_ERROR;
Action *a = mFirst;
while (a) {
int rv = a->Prepare();