From 9daa63d45178f276a7cc457f8d0e783887aef174 Mon Sep 17 00:00:00 2001 From: Jaap Keuter Date: Wed, 29 Mar 2006 16:06:57 +0000 Subject: The header will be there, just make sure the date is put in. Coverity bug 148 svn path=/trunk/; revision=17756 --- wiretap/iseries.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'wiretap') diff --git a/wiretap/iseries.c b/wiretap/iseries.c index b0837920a2..7d4ad164b0 100644 --- a/wiretap/iseries.c +++ b/wiretap/iseries.c @@ -260,7 +260,9 @@ iseries_check_file_type (wtap * wth, int *err, int format) /* Save trace format for passing between packets */ sdate = g_malloc (10); wth->capture.iseries = g_malloc (sizeof (iseries_t)); + wth->capture.iseries->sdate = NULL; wth->capture.iseries->format = format; + wth->capture.iseries->tcp_formatted = FALSE; for (line = 0; line < ISERIES_HDR_LINES_TO_CHECK; line++) { @@ -537,7 +539,7 @@ iseries_parse_packet (wtap * wth, FILE_T fh, * different on other platforms though all the traces I've seen seem so show resolution * to 5 digits (i.e HH:MM:SS.nnnnn) so hopefully this will not require special handling */ - if (wth) + if (wth->capture.iseries->sdate) { num_items_scanned = sscanf (wth->capture.iseries->sdate, "%d/%d/%d", &month, &day, &year); -- cgit v1.2.1