aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);