diff options
author | Martin Aumueller | 2008-07-30 23:04:56 +0200 |
---|---|---|
committer | Matt Colyer | 2008-07-31 09:04:08 -0700 |
commit | 829f1ce0473e011e3aadd8ddf370fad64bfd2840 (patch) | |
tree | 79ea7aa058b1e8defdab8e792fa4804ce64bff95 | |
parent | 3a659016bbe52ed729a46d5203372db9f1a1c9aa (diff) | |
download | libimobiledevice-829f1ce0473e011e3aadd8ddf370fad64bfd2840.tar.gz libimobiledevice-829f1ce0473e011e3aadd8ddf370fad64bfd2840.tar.bz2 |
Initialize pointer to NULL so it can be safely be freed.
Signed-off-by: Matt Colyer <matt@colyer.name>
-rw-r--r-- | src/iphone.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/iphone.c b/src/iphone.c index 91a9f50..cf53310 100644 --- a/src/iphone.c +++ b/src/iphone.c @@ -39,6 +39,7 @@ iPhone *get_iPhone() { // initialize the struct phone->device = NULL; phone->__device = NULL; + phone->buffer = NULL; // Initialize libusb. usb_init(); |