diff options
author | Christian Persch <chpe@src.gnome.org> | 2008-08-04 21:16:42 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2008-08-04 21:16:42 +0800 |
commit | 1534ad8cea24cd80f33710711239808f47ca25a2 (patch) | |
tree | 69b42667e7fe9dc7f267cc53ae76ad48e0ad1549 | |
parent | 4e61e7ef040b608b108487f3de858253510af178 (diff) | |
download | gsoc2013-epiphany-1534ad8cea24cd80f33710711239808f47ca25a2.tar gsoc2013-epiphany-1534ad8cea24cd80f33710711239808f47ca25a2.tar.gz gsoc2013-epiphany-1534ad8cea24cd80f33710711239808f47ca25a2.tar.bz2 gsoc2013-epiphany-1534ad8cea24cd80f33710711239808f47ca25a2.tar.lz gsoc2013-epiphany-1534ad8cea24cd80f33710711239808f47ca25a2.tar.xz gsoc2013-epiphany-1534ad8cea24cd80f33710711239808f47ca25a2.tar.zst gsoc2013-epiphany-1534ad8cea24cd80f33710711239808f47ca25a2.zip |
Use NS_ENSURE_TRUE here since this shouldn't ever fail.
svn path=/branches/gnome-2-24/; revision=8376
-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; |