From 7aa3b8355acf5d8eec0634980699c32ff69116fb Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Mon, 28 Feb 2005 22:07:57 +0000 Subject: NULL check. Fixes bug #165999. 2005-02-28 Christian Persch * 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. --- embed/mozilla/MozDownload.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'embed') 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 destFile (do_CreateInstance(NS_LOCAL_FILE_CONTRACTID)); + NS_ENSURE_TRUE (destFile, NS_ERROR_FAILURE); + destFile->InitWithNativePath (nsEmbedCString (path)); g_free (path); -- cgit