From a576a803cdd3e95e9ecf269fae0a61e1a5419e7d Mon Sep 17 00:00:00 2001 From: "sspitzer@mozilla.org" Date: Wed, 29 Aug 2007 20:21:18 -0700 Subject: [PATCH] fix for bug #334305: Importing bookmarks from Opera does not work r=dietrich --- browser/components/migration/src/nsOperaProfileMigrator.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/browser/components/migration/src/nsOperaProfileMigrator.cpp b/browser/components/migration/src/nsOperaProfileMigrator.cpp index 1f2ec037e2c1..34902613a1e9 100644 --- a/browser/components/migration/src/nsOperaProfileMigrator.cpp +++ b/browser/components/migration/src/nsOperaProfileMigrator.cpp @@ -1052,7 +1052,7 @@ nsOperaProfileMigrator::CopyBookmarks(PRBool aReplace) PRInt64 root; rv = bms->GetBookmarksRoot(&root); NS_ENSURE_SUCCESS(rv, rv); - PRInt64 parentFolder; + PRInt64 parentFolder = root; nsCOMPtr bundleService(do_GetService(NS_STRINGBUNDLE_CONTRACTID)); nsCOMPtr bundle; @@ -1076,7 +1076,6 @@ nsOperaProfileMigrator::CopyBookmarks(PRBool aReplace) GetProfilePath(nsnull, profile); rv = InitializeBookmarks(profile); NS_ENSURE_SUCCESS(rv, rv); - parentFolder = root; } #if defined(XP_WIN) || (defined(XP_UNIX) && !defined(XP_MACOSX))