diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2005-03-01 06:07:57 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2005-03-01 06:07:57 +0800 |
commit | 7aa3b8355acf5d8eec0634980699c32ff69116fb (patch) | |
tree | af4f4951cef45a32a271b66d730767e7b0feacaf /embed/mozilla | |
parent | 783485ff724884f6969f5650b2f73dbd2d37a0fa (diff) | |
download | gsoc2013-epiphany-7aa3b8355acf5d8eec0634980699c32ff69116fb.tar gsoc2013-epiphany-7aa3b8355acf5d8eec0634980699c32ff69116fb.tar.gz gsoc2013-epiphany-7aa3b8355acf5d8eec0634980699c32ff69116fb.tar.bz2 gsoc2013-epiphany-7aa3b8355acf5d8eec0634980699c32ff69116fb.tar.lz gsoc2013-epiphany-7aa3b8355acf5d8eec0634980699c32ff69116fb.tar.xz gsoc2013-epiphany-7aa3b8355acf5d8eec0634980699c32ff69116fb.tar.zst gsoc2013-epiphany-7aa3b8355acf5d8eec0634980699c32ff69116fb.zip |
NULL check. Fixes bug #165999.
2005-02-28 Christian Persch <chpe@cvs.gnome.org>
* embed/mozilla/MozDownload.cpp:
NULL check. Fixes bug #165999.
* src/ephy-main.c: (slowly_and_stupidly_obtain_timestamp), (main):
Try to get an approximation to the launch time if DESKTOP_STARTUP_ID
is not set. Fixes bug #168820, patch by Elijah Newren.
Diffstat (limited to 'embed/mozilla')
-rw-r--r-- | embed/mozilla/MozDownload.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/embed/mozilla/MozDownload.cpp b/embed/mozilla/MozDownload.cpp index 419123c76..081a5d5d0 100644 --- a/embed/mozilla/MozDownload.cpp +++ b/embed/mozilla/MozDownload.cpp @@ -763,6 +763,8 @@ nsresult BuildDownloadPath (const char *defaultFileName, nsILocalFile **_retval) } nsCOMPtr <nsILocalFile> destFile (do_CreateInstance(NS_LOCAL_FILE_CONTRACTID)); + NS_ENSURE_TRUE (destFile, NS_ERROR_FAILURE); + destFile->InitWithNativePath (nsEmbedCString (path)); g_free (path); |