diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2005-04-17 22:05:17 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2005-04-17 22:05:17 +0800 |
commit | 7b8fb927ca8c223ba51294bf52ab865b067bd774 (patch) | |
tree | e41d0f4b010347b933c71a3531ca6bd8e3cee5b6 /embed | |
parent | 62572e9e1ac7ec9d470b454f6aa04c8aa3d6d2ba (diff) | |
download | gsoc2013-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.
Diffstat (limited to 'embed')
-rw-r--r-- | embed/mozilla/mozilla-embed-persist.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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); |