2edfb0e
From nobody Mon Sep 17 00:00:00 2001
2edfb0e
From: Ben Feinstein <ben@audiun.com>
2edfb0e
Date: Sat, 10 Jun 2006 21:01:04 +0400
2edfb0e
Subject: [PATCH 8/8] Fix unitialized variable in flow-export.c
2edfb0e
2edfb0e
Without this patch, flow-export utility will misformat its SQL output when
2edfb0e
using the MySQL output format causing the export to fail.  Specifcally, the
2edfb0e
commas between the fields are getting mangled.
2edfb0e
2edfb0e
---
2edfb0e
2edfb0e
 src/flow-export.c |    2 +-
2edfb0e
 1 files changed, 1 insertions(+), 1 deletions(-)
2edfb0e
2edfb0e
bcb0b33cc9bb9427726db853a093d081dc77a1c6
2edfb0e
diff --git a/src/flow-export.c b/src/flow-export.c
2edfb0e
index 52ae4d2..22b0330 100644
2edfb0e
--- a/src/flow-export.c
2edfb0e
+++ b/src/flow-export.c
2edfb0e
@@ -961,7 +961,7 @@ #endif /* PGSQL */
2edfb0e
 
2edfb0e
 int fmt_xfields_type(char *buf, u_int64 xfield)
2edfb0e
 {
2edfb0e
-  int comma;
2edfb0e
+  int comma = 0;
2edfb0e
 
2edfb0e
   buf[0] = 0;
2edfb0e
 
2edfb0e
-- 
2edfb0e
1.3.3
2edfb0e