From 829f1ce0473e011e3aadd8ddf370fad64bfd2840 Mon Sep 17 00:00:00 2001 From: Martin Aumueller Date: Wed, 30 Jul 2008 23:04:56 +0200 Subject: Initialize pointer to NULL so it can be safely be freed. Signed-off-by: Matt Colyer --- src/iphone.c | 1 + 1 file changed, 1 insertion(+) 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(); -- cgit v1.1-32-gdbae