Branch: Tag:

2008-01-24

2008-01-24 13:33:54 by Martin Stjernholm <mast@lysator.liu.se>

_sprintf("%O",...) should always work, even for not yet initialized
objects.

Rev: lib/modules/Calendar.pmod/Timezone.pmod:1.39

339:       string _sprintf(int t)    { -  return (t=='O')?sprintf("%O%s",what,extra_name):0; +  return (t=='O')?sprintf("%O%s",what,extra_name || ""):0;    }       int raw_utc_offset() { return what->raw_utc_offset()+extra_offset; }
552:    {    return (t=='O')?    sprintf("Shift(%s,%d%s,%+d,%O)", -  dayrule,time,timetype,offset,s): +  dayrule || "<unset>", time, +  timetype || "<unset>", offset, s):    0;    }