=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/sed/compile.c,v retrieving revision 1.22 retrieving revision 1.23 diff -c -r1.22 -r1.23 *** src/usr.bin/sed/compile.c 2006/10/09 00:23:56 1.22 --- src/usr.bin/sed/compile.c 2007/01/09 08:37:44 1.23 *************** *** 1,4 **** ! /* $OpenBSD: compile.c,v 1.22 2006/10/09 00:23:56 tedu Exp $ */ /*- * Copyright (c) 1992 Diomidis Spinellis. --- 1,4 ---- ! /* $OpenBSD: compile.c,v 1.23 2007/01/09 08:37:44 otto Exp $ */ /*- * Copyright (c) 1992 Diomidis Spinellis. *************** *** 35,41 **** #ifndef lint /* from: static char sccsid[] = "@(#)compile.c 8.2 (Berkeley) 4/28/95"; */ ! static const char rcsid[] = "$OpenBSD: compile.c,v 1.22 2006/10/09 00:23:56 tedu Exp $"; #endif /* not lint */ #include --- 35,41 ---- #ifndef lint /* from: static char sccsid[] = "@(#)compile.c 8.2 (Berkeley) 4/28/95"; */ ! static const char rcsid[] = "$OpenBSD: compile.c,v 1.23 2007/01/09 08:37:44 otto Exp $"; #endif /* not lint */ #include *************** *** 161,168 **** } semicolon: EATSPACE(); ! if (p && (*p == '#' || *p == '\0')) continue; *link = cmd = xmalloc(sizeof(struct s_command)); link = &cmd->next; cmd->nonsel = cmd->inrange = 0; --- 161,172 ---- } semicolon: EATSPACE(); ! if (*p == '#' || *p == '\0') continue; + if (*p == ';') { + p++; + goto semicolon; + } *link = cmd = xmalloc(sizeof(struct s_command)); link = &cmd->next; cmd->nonsel = cmd->inrange = 0;