From 7b8fb927ca8c223ba51294bf52ab865b067bd774 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Sun, 17 Apr 2005 14:05:17 +0000 Subject: Add null check. 2005-04-17 Christian Persch * embed/mozilla/mozilla-embed-persist.cpp: Add null check. --- embed/mozilla/mozilla-embed-persist.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'embed') 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 tmpFile = do_CreateInstance (NS_LOCAL_FILE_CONTRACTID); + NS_ENSURE_TRUE (tmpFile, FALSE); + tmpFile->InitWithNativePath (nsEmbedCString (tmp_filename)); g_free (tmp_filename); -- cgit v1.2.3