diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | embed/mozilla/mozilla-embed-persist.cpp | 2 |
2 files changed, 8 insertions, 0 deletions
@@ -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); |