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

Unified Diff: content/renderer/render_thread_impl.cc

Issue 11125004: fix uninitialized variable warning for vs2012 compilation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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: content/renderer/render_thread_impl.cc
diff --git a/content/renderer/render_thread_impl.cc b/content/renderer/render_thread_impl.cc
index c00ee7d6cac18d7314ffb2c038a7ad02e5f0a1a7..108b879442600d69105ffba7ea3438b0d9955473 100644
--- a/content/renderer/render_thread_impl.cc
+++ b/content/renderer/render_thread_impl.cc
@@ -735,7 +735,7 @@ void RenderThreadImpl::RecordUserMetrics(const std::string& action) {
base::SharedMemoryHandle RenderThreadImpl::HostAllocateSharedMemoryBuffer(
uint32 buffer_size) {
- base::SharedMemoryHandle mem_handle;
+ base::SharedMemoryHandle mem_handle = base::SharedMemoryHandle();
jamesr 2012/10/12 19:33:57 can you just do mem_handle(); ?
scottmg 2012/10/12 19:35:56 That'd be a function prototype I think.
Send(new ChildProcessHostMsg_SyncAllocateSharedMemory(
buffer_size, &mem_handle));
return mem_handle;
« 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