summaryrefslogtreecommitdiffstats
path: root/chrome/browser
diff options
context:
space:
mode:
authoragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-19 04:06:37 +0000
committeragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-19 04:06:37 +0000
commit6c56c9962a3eae73f46297c7c220264d23a5004d (patch)
tree4523d1ea57f17588da6ec38851dcece76be87e44 /chrome/browser
parent9010d7f273b645f81e707b45081c0ab437c54377 (diff)
downloadchromium_src-6c56c9962a3eae73f46297c7c220264d23a5004d.zip
chromium_src-6c56c9962a3eae73f46297c7c220264d23a5004d.tar.gz
chromium_src-6c56c9962a3eae73f46297c7c220264d23a5004d.tar.bz2
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
Diffstat (limited to 'chrome/browser')
-rw-r--r--chrome/browser/net/url_fixer_upper.cc3
1 files changed, 2 insertions, 1 deletions
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;