Followup to Bug 484019 - Fix corrupt or wrong roots titles in the database and in the Library. Wrong binding. r=sdwilsh

This commit is contained in:
Marco Bonardo 2009-05-15 01:27:58 +02:00
parent 4f88c00c6c
commit 00b3590749

View File

@ -2251,7 +2251,7 @@ nsNavBookmarks::SetItemTitle(PRInt64 aItemId, const nsACString &aTitle)
NS_ENSURE_SUCCESS(rv, rv);
// Support setting a null title, we support this in insertBookmark.
if (aTitle.IsVoid())
rv = mDBInsertBookmark->BindNullParameter(0);
rv = statement->BindNullParameter(0);
else
rv = statement->BindUTF8StringParameter(0, aTitle);
NS_ENSURE_SUCCESS(rv, rv);