Initialize pdh...
authorsake <sake@f5534014-38df-0310-8fa8-9805f1628bb7>
Sat, 23 May 2009 08:57:20 +0000 (08:57 +0000)
committersake <sake@f5534014-38df-0310-8fa8-9805f1628bb7>
Sat, 23 May 2009 08:57:20 +0000 (08:57 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28455 f5534014-38df-0310-8fa8-9805f1628bb7

editcap.c

index d1f42010c570f52adecc9d672e93907f171cb56b..09558636f29206a3c083c3cc624843c1c08e64b6 100644 (file)
--- a/editcap.c
+++ b/editcap.c
@@ -677,7 +677,7 @@ main(int argc, char *argv[])
   char *p;
   unsigned int snaplen = 0;             /* No limit               */
   unsigned int choplen = 0;             /* No chop                */
-  wtap_dumper *pdh;
+  wtap_dumper *pdh = NULL;
   int count = 1;
   unsigned duplicate_count = 0;
   gint64 data_offset;