]> git.pld-linux.org Git - packages/glibc.git/blob - glibc-tzfile-noassert.patch
- rel 6; update fixes from upstream
[packages/glibc.git] / glibc-tzfile-noassert.patch
1 --- libc/time/tzfile.c.orig     2004-03-20 01:37:50.000000000 +0100
2 +++ libc/time/tzfile.c  2004-06-29 17:40:15.000000000 +0200
3 @@ -313,7 +313,9 @@
4      {
5        /* This should only happen if there are no transition rules.
6          In this case there should be only one single type.  */
7 -      assert (num_types == 1);
8 +      if(__builtin_expect((num_types != 1), 0))
9 +       goto ret_free_transitions;
10 +      /* assert (num_types == 1);  -- disabled, don't crash */
11        __tzname[0] = __tzstring (zone_names);
12      }
13    if (__tzname[1] == NULL)
This page took 0.032577 seconds and 3 git commands to generate.