From Eugene Bogush: Initialize read_err to 0 so mergecap works again. Fixes https...
authorcmaynard <cmaynard@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 30 Nov 2011 15:28:58 +0000 (15:28 +0000)
committercmaynard <cmaynard@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 30 Nov 2011 15:28:58 +0000 (15:28 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@40048 f5534014-38df-0310-8fa8-9805f1628bb7

mergecap.c

index 91b956d3d8c759a9957d423ccddc4bcfc48b6732..77bc156f965c09417a14c08421741d7dfc45b5f4 100644 (file)
@@ -161,7 +161,7 @@ main(int argc, char *argv[])
   int          i;
   struct wtap_pkthdr *phdr, snap_phdr;
   wtap_dumper *pdh;
-  int          open_err, read_err, write_err, close_err;
+  int          open_err, read_err=0, write_err, close_err;
   gchar       *err_info;
   int          err_fileno;
   char        *out_filename = NULL;