external: memset commit struct

Change-Id: I5e6d046f2fdff54fdd58aaca583c0ae8038a9a63
This commit is contained in:
Naseer Ahmed
2012-12-06 19:29:29 -05:00
parent e97c35ffb5
commit 9da8466f29

View File

@@ -549,7 +549,8 @@ bool ExternalDisplay::post()
if(mFd == -1) if(mFd == -1)
return false; return false;
struct mdp_display_commit ext_commit; struct mdp_display_commit ext_commit;
ext_commit.flags |= MDP_DISPLAY_COMMIT_OVERLAY; memset(&ext_commit, 0, sizeof(struct mdp_display_commit));
ext_commit.flags = MDP_DISPLAY_COMMIT_OVERLAY;
if (ioctl(mFd, MSMFB_DISPLAY_COMMIT, &ext_commit) == -1) { if (ioctl(mFd, MSMFB_DISPLAY_COMMIT, &ext_commit) == -1) {
ALOGE("%s: MSMFB_DISPLAY_COMMIT for external failed, str: %s", ALOGE("%s: MSMFB_DISPLAY_COMMIT for external failed, str: %s",
__FUNCTION__, strerror(errno)); __FUNCTION__, strerror(errno));