From 3a35307a853a627c9faab68071623f94f6c90dbf Mon Sep 17 00:00:00 2001 From: ddennedy Date: Tue, 17 Oct 2006 03:39:37 +0000 Subject: [PATCH] bugfix segfault in raw1394_iso_shutdown on no iso activity due to not initializing raw1394_handle.iso_packet_infos to NULL in raw1394_new_handle git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@168 53a565d1-3bb7-0310-b661-cf11e63c67ab --- src/main.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main.c b/src/main.c index 73e55e6..c72bfe1 100644 --- a/src/main.c +++ b/src/main.c @@ -140,8 +140,9 @@ struct raw1394_handle *raw1394_new_handle(void) handle->tag_handler = tag_handler_default; handle->arm_tag_handler = arm_tag_handler_default; memset(handle->iso_handler, 0, sizeof(handle->iso_handler)); - handle->iso_buffer = NULL; - handle->iso_mode = ISO_INACTIVE; + handle->iso_buffer = NULL; + handle->iso_mode = ISO_INACTIVE; + handle->iso_packet_infos = NULL; return handle; }