Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/fs/cd9660 PR/50951: Unmess this up.
details: https://anonhg.NetBSD.org/src/rev/1938f8d6524d
branches: trunk
changeset: 814216:1938f8d6524d
user: christos <christos%NetBSD.org@localhost>
date: Sat Mar 12 02:36:25 2016 +0000
description:
PR/50951: Unmess this up.
diffstat:
sys/fs/cd9660/cd9660_vnops.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r fc35d66a5e0f -r 1938f8d6524d sys/fs/cd9660/cd9660_vnops.c
--- a/sys/fs/cd9660/cd9660_vnops.c Sat Mar 12 02:27:31 2016 +0000
+++ b/sys/fs/cd9660/cd9660_vnops.c Sat Mar 12 02:36:25 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cd9660_vnops.c,v 1.53 2016/03/11 18:35:50 christos Exp $ */
+/* $NetBSD: cd9660_vnops.c,v 1.54 2016/03/12 02:36:25 christos Exp $ */
/*-
* Copyright (c) 1994
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cd9660_vnops.c,v 1.53 2016/03/11 18:35:50 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cd9660_vnops.c,v 1.54 2016/03/12 02:36:25 christos Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -319,7 +319,8 @@
cl = idp->current.d_namlen;
cname = idp->current.d_name;
- if ((assoc = cl) > 1 && *cname == ASSOCCHAR) {
+ assoc = (cl > 1) && (*cname == ASSOCCHAR);
+ if (assoc) {
cl--;
cname++;
}
Home |
Main Index |
Thread Index |
Old Index