From 6c56c9962a3eae73f46297c7c220264d23a5004d Mon Sep 17 00:00:00 2001 From: "agl@chromium.org" Date: Thu, 19 Mar 2009 04:06:37 +0000 Subject: Check return value of AbsolutePath (found by Coverity) Review URL: http://codereview.chromium.org/48161 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12080 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/net/url_fixer_upper.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'chrome/browser') diff --git a/chrome/browser/net/url_fixer_upper.cc b/chrome/browser/net/url_fixer_upper.cc index 9d096bd..d928c96 100644 --- a/chrome/browser/net/url_fixer_upper.cc +++ b/chrome/browser/net/url_fixer_upper.cc @@ -36,7 +36,8 @@ static void PrepareStringForFileOps(const FilePath& text, static bool ValidPathForFile(const FilePath::StringType& text, FilePath* full_path) { FilePath file_path(text); - file_util::AbsolutePath(&file_path); + if (!file_util::AbsolutePath(&file_path)) + return false; if (!file_util::PathExists(file_path)) return false; -- cgit v1.1