From 80922a99e39ecf1fd229bd58c3a3ccbbd2841d0f Mon Sep 17 00:00:00 2001
From: Ulrich Drepper <drepper@redhat.com>
Date: Fri, 27 Jun 2008 17:27:39 +0000
Subject: [BZ #6657]

2008-06-27  Ulrich Drepper  <drepper@redhat.com>
	[BZ #6657]
	* time/strptime_l.c: Don't clear s.era_cnt after successful match
	of %EY.
	Patch by Petr Baudis.
---
 time/strptime_l.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

(limited to 'time')

diff --git a/time/strptime_l.c b/time/strptime_l.c
index 59a557c22b..d5356d3b6a 100644
--- a/time/strptime_l.c
+++ b/time/strptime_l.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2002, 2004, 2005, 2007 Free Software Foundation, Inc.
+/* Copyright (C) 2002, 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -951,7 +951,6 @@ __strptime_internal (rp, fmt, tmp, statep LOCALE_PARAM)
 		  else
 		    {
 		      s.decided = loc;
-		      s.era_cnt = -1;
 		      break;
 		    }
 
-- 
cgit v1.2.1