Branch: Tag:

2013-05-28

2013-05-28 17:21:34 by Martin Nilsson <nilsson@opera.com>

Removed buggy micro-optimization.

2814:   {    if (zonename=="") return 0;    -  Calendar.Rule.Timezone zone = Calendar.Timezone[zonename]; -  -  if( !zone ) -  { +     if (zonename[0]=='"') sscanf(zonename,"\"%s\"",zonename);    sscanf(zonename,"%*[ \t]%s",zonename);   
2829:    if (origin->rules->abbr2zone[zonename])    zonename=origin->rules->abbr2zone[zonename];    -  zone=Calendar.Timezone[zonename]; +  Calendar.Rule.Timezone zone = Calendar.Timezone[zonename];       if (!zone)    {
2856:    }    return 0;    } -  } +     return dwim_tod(origin->set_timezone(zone),whut,@args);   }