Commit 829f1ce0 authored by Martin Aumueller's avatar Martin Aumueller Committed by Matt Colyer

Initialize pointer to NULL so it can be safely be freed.

Signed-off-by: 's avatarMatt Colyer <matt@colyer.name>
parent 3a659016
...@@ -39,6 +39,7 @@ iPhone *get_iPhone() { ...@@ -39,6 +39,7 @@ iPhone *get_iPhone() {
// initialize the struct // initialize the struct
phone->device = NULL; phone->device = NULL;
phone->__device = NULL; phone->__device = NULL;
phone->buffer = NULL;
// Initialize libusb. // Initialize libusb.
usb_init(); usb_init();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment