Set the nanoseconds value of time stamps to 0, rather than using

whatever random junk was in there.

svn path=/trunk/; revision=5276
This commit is contained in:
Guy Harris 2002-04-28 22:08:50 +00:00
parent 640a5e494a
commit e38d83af1a
1 changed files with 2 additions and 1 deletions

View File

@ -2,7 +2,7 @@
* Routines for afp packet dissection
* Copyright 2002, Didier Gautheron <dgautheron@magic.fr>
*
* $Id: packet-afp.c,v 1.6 2002/04/28 21:53:31 guy Exp $
* $Id: packet-afp.c,v 1.7 2002/04/28 22:08:50 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@ -676,6 +676,7 @@ print_date(proto_tree *tree,int id, tvbuff_t *tvb, gint offset)
nstime_t tv;
tv.secs = AD_DATE_TO_UNIX(date);
tv.nsecs = 0;
proto_tree_add_time(tree, id, tvb, offset, 4, &tv);
return date;