diff options
author | Gerald Combs <gerald@wireshark.org> | 2011-03-25 23:45:48 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2011-03-25 23:45:48 +0000 |
commit | 4ee10e769e2cfeb58835d5976b0941ca8a0b5a28 (patch) | |
tree | 47d6ea0cbcc9d049ffd24ecba7da57a9c1e11b3e /wiretap | |
parent | 321149bcd7a3ce05e5b5f40067e22e34572dc0f0 (diff) |
Fix Coverity CIDs 810 & 811: uninitialized variables.
svn path=/trunk/; revision=36340
Diffstat (limited to 'wiretap')
-rw-r--r-- | wiretap/nettl.c | 2 | ||||
-rw-r--r-- | wiretap/vms.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/wiretap/nettl.c b/wiretap/nettl.c index 8991731c47..0f20466518 100644 --- a/wiretap/nettl.c +++ b/wiretap/nettl.c @@ -200,6 +200,8 @@ int nettl_open(wtap *wth, int *err, gchar **err_info _U_) int bytes_read; nettl_t *nettl; + memset(&file_hdr, 0, sizeof(file_hdr)); + /* Read in the string that should be at the start of a HP file */ errno = WTAP_ERR_CANT_READ; bytes_read = file_read(file_hdr.magic, 1, MAGIC_SIZE, wth->fh); diff --git a/wiretap/vms.c b/wiretap/vms.c index 92c3ae08b0..0ae07ba368 100644 --- a/wiretap/vms.c +++ b/wiretap/vms.c @@ -377,6 +377,8 @@ parse_vms_rec_hdr(wtap *wth, FILE_T fh, int *err, gchar **err_info) static const gchar months[] = "JANFEBMARAPRMAYJUNJULAUGSEPOCTNOVDEC"; tm.tm_year = 1970; + tm.tm_mon = 0; + tm.tm_mday = 1; tm.tm_hour = 1; tm.tm_min = 1; tm.tm_sec = 1; |