aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2005-04-17 22:05:17 +0800
committerChristian Persch <chpe@src.gnome.org>2005-04-17 22:05:17 +0800
commit7b8fb927ca8c223ba51294bf52ab865b067bd774 (patch)
treee41d0f4b010347b933c71a3531ca6bd8e3cee5b6
parent62572e9e1ac7ec9d470b454f6aa04c8aa3d6d2ba (diff)
downloadgsoc2013-epiphany-7b8fb927ca8c223ba51294bf52ab865b067bd774.tar
gsoc2013-epiphany-7b8fb927ca8c223ba51294bf52ab865b067bd774.tar.gz
gsoc2013-epiphany-7b8fb927ca8c223ba51294bf52ab865b067bd774.tar.bz2
gsoc2013-epiphany-7b8fb927ca8c223ba51294bf52ab865b067bd774.tar.lz
gsoc2013-epiphany-7b8fb927ca8c223ba51294bf52ab865b067bd774.tar.xz
gsoc2013-epiphany-7b8fb927ca8c223ba51294bf52ab865b067bd774.tar.zst
gsoc2013-epiphany-7b8fb927ca8c223ba51294bf52ab865b067bd774.zip
Add null check.
2005-04-17 Christian Persch <chpe@cvs.gnome.org> * embed/mozilla/mozilla-embed-persist.cpp: Add null check.
-rw-r--r--ChangeLog6
-rw-r--r--embed/mozilla/mozilla-embed-persist.cpp2
2 files changed, 8 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index d177d064f..3cfeee3e3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2005-04-17 Christian Persch <chpe@cvs.gnome.org>
+ * embed/mozilla/mozilla-embed-persist.cpp:
+
+ Add null check.
+
+2005-04-17 Christian Persch <chpe@cvs.gnome.org>
+
* configure.ac:
* embed/mozilla/ContentHandler.cpp:
diff --git a/embed/mozilla/mozilla-embed-persist.cpp b/embed/mozilla/mozilla-embed-persist.cpp
index f042f4cb9..96b6a37ba 100644
--- a/embed/mozilla/mozilla-embed-persist.cpp
+++ b/embed/mozilla/mozilla-embed-persist.cpp
@@ -176,6 +176,8 @@ impl_save (EphyEmbedPersist *persist)
if (tmp_filename == NULL) return FALSE;
nsCOMPtr<nsILocalFile> tmpFile = do_CreateInstance (NS_LOCAL_FILE_CONTRACTID);
+ NS_ENSURE_TRUE (tmpFile, FALSE);
+
tmpFile->InitWithNativePath (nsEmbedCString (tmp_filename));
g_free (tmp_filename);