Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(60)

Unified Diff: webkit/fileapi/file_system_operation.cc

Issue 9104024: Initialized file_util variable to NULL. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/fileapi/file_system_operation.cc
diff --git a/webkit/fileapi/file_system_operation.cc b/webkit/fileapi/file_system_operation.cc
index c0b922bf939cbd054dcc4135efc9657f1919e4c4..b12c5bf0589124c7a57ef0cbbdceea937d5f821c 100644
--- a/webkit/fileapi/file_system_operation.cc
+++ b/webkit/fileapi/file_system_operation.cc
@@ -786,7 +786,7 @@ bool FileSystemOperation::SetupSrcContextForWrite(const GURL& path,
bool create) {
GURL origin_url;
FileSystemType type;
- FileSystemFileUtil* file_util;
+ FileSystemFileUtil* file_util = NULL;
bool result = VerifyFileSystemPathForWrite(
path, create, &origin_url, &type, &src_virtual_path_, &file_util);
operation_context_.set_src_origin_url(origin_url);
@@ -800,7 +800,7 @@ bool FileSystemOperation::SetupDestContextForWrite(const GURL& path,
bool create) {
GURL origin_url;
FileSystemType type;
- FileSystemFileUtil* file_util;
+ FileSystemFileUtil* file_util = NULL;
bool result = VerifyFileSystemPathForWrite(
path, create, &origin_url, &type, &dest_virtual_path_, &file_util);
operation_context_.set_dest_origin_url(origin_url);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698