From d2949c461cb3f4a83af895815eafb3af1667a49a Mon Sep 17 00:00:00 2001 From: Gerald Combs Date: Wed, 15 Apr 2009 16:02:35 +0000 Subject: [PATCH] Try to fix bug 3279 (initialize a time_t to a sane value). svn path=/trunk/; revision=28055 --- merge.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/merge.c b/merge.c index e8b79191e9..6e83e7ddac 100644 --- a/merge.c +++ b/merge.c @@ -157,7 +157,7 @@ merge_read_packet(int in_file_count, merge_in_file_t in_files[], int *err, { int i; int ei = -1; - struct wtap_nstime tv = {(time_t)LONG_MAX, INT_MAX}; + struct wtap_nstime tv = { sizeof(time_t) > sizeof(int) ? LONG_MAX : INT_MAX, INT_MAX }; struct wtap_pkthdr *phdr; /*