Module Name:    src
Committed By:   christos
Date:           Mon Jan 31 19:10:18 UTC 2011

Modified Files:
        src/lib/libc/gen: fnmatch.c

Log Message:
add braces, per joerg.


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/lib/libc/gen/fnmatch.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libc/gen/fnmatch.c
diff -u src/lib/libc/gen/fnmatch.c:1.23 src/lib/libc/gen/fnmatch.c:1.24
--- src/lib/libc/gen/fnmatch.c:1.23	Mon Jan 31 10:07:29 2011
+++ src/lib/libc/gen/fnmatch.c	Mon Jan 31 14:10:18 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: fnmatch.c,v 1.23 2011/01/31 15:07:29 christos Exp $	*/
+/*	$NetBSD: fnmatch.c,v 1.24 2011/01/31 19:10:18 christos Exp $	*/
 
 /*
  * Copyright (c) 1989, 1993, 1994
@@ -37,7 +37,7 @@
 #if 0
 static char sccsid[] = "@(#)fnmatch.c	8.2 (Berkeley) 4/16/94";
 #else
-__RCSID("$NetBSD: fnmatch.c,v 1.23 2011/01/31 15:07:29 christos Exp $");
+__RCSID("$NetBSD: fnmatch.c,v 1.24 2011/01/31 19:10:18 christos Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -122,7 +122,7 @@
 	if (recursion-- == 0)
 		return FNM_NORES;
 
-	for (stringstart = string;;)
+	for (stringstart = string;;) {
 		switch (c = FOLDCASE(*pattern++, flags)) {
 		case EOS:
 			if ((flags & FNM_LEADING_DIR) && *string == '/')
@@ -202,6 +202,7 @@
 				return FNM_NOMATCH;
 			break;
 		}
+	}
 	/* NOTREACHED */
 }
 

Reply via email to