diff options
-rw-r--r-- | embed/mozilla/mozilla-embed-single.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/embed/mozilla/mozilla-embed-single.cpp b/embed/mozilla/mozilla-embed-single.cpp index ec49a7d5d..8a3938245 100644 --- a/embed/mozilla/mozilla-embed-single.cpp +++ b/embed/mozilla/mozilla-embed-single.cpp @@ -935,8 +935,7 @@ impl_list_passwords (EphyPasswordManager *manager) rv = loginManager -> GetAllLogins(&count, &logins); if (NS_FAILED (rv)) return NULL; - if (count <= 0 || !logins) - return NULL; + NS_ENSURE_TRUE (logins, NULL); for (i=0; i < count; i++) { nsString transfer; |