Diff between d8459a282b2cda0bb5aab35e586c0f0e85676a04 and 5f63c56d48a1922a138d25f1fdb3cb18fcacb6a6
Changed Files
| File | Additions | Deletions | Status |
| emulator/bthost.c | +1 | -3 | modified |
Full Patch
diff --git a/emulator/bthost.c b/emulator/bthost.c
index a2c72a9..a123228 100644
--- a/emulator/bthost.c
+++ b/emulator/bthost.c
@@ -219,12 +219,10 @@ struct bthost *bthost_create(void)
{
struct bthost *bthost;
- bthost = malloc(sizeof(*bthost));
+ bthost = new0(struct bthost, 1);
if (!bthost)
return NULL;
- memset(bthost, 0, sizeof(*bthost));
-
/* Set defaults */
bthost->io_capability = 0x03;