Missing break statement

Tim Murphy tpm at hi.com
Wed Apr 30 17:28:22 UTC 1997


In the rulesub() function in zic.c there is the following switch
statement.

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
                switch (lowerit(*ep)) {
                        case 's':       /* Standard */
                                rp->r_todisstd = TRUE;
                                rp->r_todisgmt = FALSE;
                                *ep = '\0';
                                break;
                        case 'w':       /* Wall */
                                rp->r_todisstd = FALSE;
                                rp->r_todisgmt = FALSE;
                                *ep = '\0';
                        case 'g':       /* Greenwich */ case 'u':       /* Universal */
                        case 'z':       /* Zulu */
                                rp->r_todisstd = TRUE;
                                rp->r_todisgmt = TRUE;
                                *ep = '\0';
                                break;
                }
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

It appears the break statement is missing from the end of the 'w' case.

----------------------------------------------------------------------
Timothy Patrick Murphy		tpm at hi.com 	Voice: (617) 890-0444	
Hitachi Computer Products                 	  Fax: (617) 890-4998
1601 Trapelo Rd., Waltham, MA 02154, USA
----------------------------------------------------------------------



More information about the tz mailing list