Bug 145119

Summary: Fix uninitialized warnings in RealtimeMediaSourceCenterOwr.cpp
Product: WebKit Reporter: Csaba Osztrogonác <ossy>
Component: New BugsAssignee: Csaba Osztrogonác <ossy>
Status: RESOLVED FIXED    
Severity: Normal CC: cgarcia, commit-queue, eric.carlson, mrobinson, ossy, pnormand
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 145121, 142476    
Attachments:
Description Flags
Patch
none
Patch none

Description Csaba Osztrogonác 2015-05-18 02:22:34 PDT
./../Source/WebCore/platform/mediastream/openwebrtc/RealtimeMediaSourceCenterOwr.cpp:94:9: warning: variable 'types' is uninitialized when used here [-Wuninitialized]
../../Source/WebCore/platform/mediastream/openwebrtc/RealtimeMediaSourceCenterOwr.cpp:92:14: note: initialize the variable 'types' to silence this warning
../../Source/WebCore/platform/mediastream/openwebrtc/RealtimeMediaSourceCenterOwr.cpp:157:18: warning: variable 'sourceType' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]

( This file introduced in http://trac.webkit.org/changeset/181893 . )
Comment 1 Csaba Osztrogonác 2015-05-18 02:25:16 PDT
Created attachment 253315 [details]
Patch
Comment 2 Csaba Osztrogonác 2015-05-18 02:38:46 PDT
Created attachment 253317 [details]
Patch
Comment 3 Gyuyoung Kim 2015-05-18 18:10:18 PDT
Comment on attachment 253317 [details]
Patch

LGTM
Comment 4 WebKit Commit Bot 2015-05-18 18:39:35 PDT
Comment on attachment 253317 [details]
Patch

Clearing flags on attachment: 253317

Committed r184537: <http://trac.webkit.org/changeset/184537>
Comment 5 WebKit Commit Bot 2015-05-18 18:39:40 PDT
All reviewed patches have been landed.  Closing bug.