summaryrefslogtreecommitdiffstats
path: root/src/fw-iso.c
diff options
context:
space:
mode:
authorGravatar Erik Hovland 2008-09-30 14:05:32 -0700
committerGravatar Dan Dennedy 2008-10-28 22:52:04 -0700
commit378b935fa35d9b00a36c20f8d27b489c99e1e2ef (patch)
tree0896a8bc4a356351490dc28c8cbc10e0a71adc81 /src/fw-iso.c
parentdispatch.c: fix a memory leak on not deleting the raw1394 wrapper handle. (diff)
Make sure variables are initialized before used.
Signed-off-by: Erik Hovland <erik@hovland.org> Signed-off-by: Dan Dennedy <dan@dennedy.org>
Diffstat (limited to 'src/fw-iso.c')
-rw-r--r--src/fw-iso.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fw-iso.c b/src/fw-iso.c
index f493444..9e66fff 100644
--- a/src/fw-iso.c
+++ b/src/fw-iso.c
@@ -84,7 +84,8 @@ queue_xmit_packets(raw1394handle_t handle, int limit)
fw_handle_t fwhandle = handle->mode.fw;
enum raw1394_iso_disposition d;
unsigned char tag, sy;
- int len, cycle, dropped;
+ int len, cycle = -1;
+ unsigned int dropped = 0;
if (fwhandle->iso.xmit_handler == NULL)
return 0;