summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Martin Aumueller2008-07-30 23:04:56 +0200
committerGravatar Matt Colyer2008-07-31 09:04:08 -0700
commit829f1ce0473e011e3aadd8ddf370fad64bfd2840 (patch)
tree79ea7aa058b1e8defdab8e792fa4804ce64bff95
parent3a659016bbe52ed729a46d5203372db9f1a1c9aa (diff)
downloadlibimobiledevice-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.c1
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();