summaryrefslogtreecommitdiff
path: root/sys/kern/kern_pledge.c
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2016-06-07 01:31:55 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2016-06-07 01:31:55 +0000
commitba1f69626860142f7ded4737cf681df35b881fbe (patch)
treebdd025a375c2fcb72c874bac886c2a6b2131b6ea /sys/kern/kern_pledge.c
parentf97aeee421843d0963b2256e41c79950a14d7cd0 (diff)
per trending style, add continue to empty loops.
ok mglocker
Diffstat (limited to 'sys/kern/kern_pledge.c')
-rw-r--r--sys/kern/kern_pledge.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_pledge.c b/sys/kern/kern_pledge.c
index 7a16e258537..7130310e04e 100644
--- a/sys/kern/kern_pledge.c
+++ b/sys/kern/kern_pledge.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_pledge.c,v 1.169 2016/05/31 22:14:43 deraadt Exp $ */
+/* $OpenBSD: kern_pledge.c,v 1.170 2016/06/07 01:31:54 tedu Exp $ */
/*
* Copyright (c) 2015 Nicholas Marriott <nicm@openbsd.org>
@@ -1599,7 +1599,7 @@ canonpath(const char *input, char *buf, size_t bufsize)
p += 3;
if (q != buf) /* "/../" at start of buf */
while (*--q != '/')
- ;
+ continue;
} else {
*q++ = *p++;