=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/sed/compile.c,v retrieving revision 1.49 retrieving revision 1.50 diff -u -r1.49 -r1.50 --- src/usr.bin/sed/compile.c 2018/08/14 18:10:09 1.49 +++ src/usr.bin/sed/compile.c 2018/12/07 14:45:40 1.50 @@ -1,4 +1,4 @@ -/* $OpenBSD: compile.c,v 1.49 2018/08/14 18:10:09 schwarze Exp $ */ +/* $OpenBSD: compile.c,v 1.50 2018/12/07 14:45:40 schwarze Exp $ */ /*- * Copyright (c) 1992 Diomidis Spinellis. @@ -284,7 +284,7 @@ case BRANCH: /* b t */ p++; EATSPACE(); - if (*p == '\0') + if (*p == '\0' || *p == ';') cmd->t = NULL; else cmd->t = duptoeol(p, "branch", &p);