diff options
| author | 2006-10-17 03:39:37 +0000 | |
|---|---|---|
| committer | 2006-10-17 03:39:37 +0000 | |
| commit | 3a35307a853a627c9faab68071623f94f6c90dbf (patch) | |
| tree | d524617a1417c1c5335a728b25eaeca0aef5d553 /src/main.c | |
| parent | apply optimization patch from Pieter Palmers that removes modulo operator fro... (diff) | |
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
Diffstat (limited to 'src/main.c')
| -rw-r--r-- | src/main.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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; } |
