diff options
author | 2015-06-23 22:52:55 +0000 | |
---|---|---|
committer | 2015-06-23 22:52:55 +0000 | |
commit | 3ad711f663dbfc66f7b6cab8f56380ad776b6a9f (patch) | |
tree | 511c66c82ea013b3b48c1ef12d492aa8b0c89dc9 /usr.bin/sed/compile.c | |
parent | Disable some of the pmap_emulate_reference() DEBUG checks if option (diff) | |
download | wireguard-openbsd-3ad711f663dbfc66f7b6cab8f56380ad776b6a9f.tar.xz wireguard-openbsd-3ad711f663dbfc66f7b6cab8f56380ad776b6a9f.zip |
POSIX specifies that that multiple '!' characters preceding a
function should be treated as a single negation. From FreeBSD
via Liviu Daia.
Diffstat (limited to 'usr.bin/sed/compile.c')
-rw-r--r-- | usr.bin/sed/compile.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/sed/compile.c b/usr.bin/sed/compile.c index 266da719772..5e8cce91eaf 100644 --- a/usr.bin/sed/compile.c +++ b/usr.bin/sed/compile.c @@ -1,4 +1,4 @@ -/* $OpenBSD: compile.c,v 1.37 2014/12/12 03:32:55 jsg Exp $ */ +/* $OpenBSD: compile.c,v 1.38 2015/06/23 22:52:55 millert Exp $ */ /*- * Copyright (c) 1992 Diomidis Spinellis. @@ -208,7 +208,7 @@ nonsel: /* Now parse the command */ case NONSEL: /* ! */ p++; EATSPACE(); - cmd->nonsel = ! cmd->nonsel; + cmd->nonsel = 1; goto nonsel; case GROUP: /* { */ p++; |