Diff between ad7db1fa1f596e948df2bb088d607bf8e2e18ab3 and 8ce47e71757fc90d13ff9e1e7b189ff751b3ac20

Changed Files

File Additions Deletions Status
profiles/audio/avctp.c +2 -0 modified

Full Patch

diff --git a/profiles/audio/avctp.c b/profiles/audio/avctp.c
index d3b5dfa..37ffde9 100644
--- a/profiles/audio/avctp.c
+++ b/profiles/audio/avctp.c
@@ -1182,6 +1182,8 @@ static int uinput_create(struct btd_device *device, const char *name,
 		}
 	}
 
+	memset(&dev, 0, sizeof(dev));
+
 	if (name) {
 		strncpy(dev.name, name, UINPUT_MAX_NAME_SIZE);
 		dev.name[UINPUT_MAX_NAME_SIZE - 1] = '\0';