summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/trigger.c
diff options
context:
space:
mode:
authorJoris Vink <joris@cvs.openbsd.org>2008-06-10 02:07:59 +0000
committerJoris Vink <joris@cvs.openbsd.org>2008-06-10 02:07:59 +0000
commit4c97d142c90929f545e1697dbf2ac36792ab4667 (patch)
treef3903029f8a331ea4ee87db07d1c4c17d9a23a92 /usr.bin/cvs/trigger.c
parent9871af5b3959da6fb3438ea15e89bd35368b5ddf (diff)
style
Diffstat (limited to 'usr.bin/cvs/trigger.c')
-rw-r--r--usr.bin/cvs/trigger.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/cvs/trigger.c b/usr.bin/cvs/trigger.c
index 945b364c0aa..c694ae5a252 100644
--- a/usr.bin/cvs/trigger.c
+++ b/usr.bin/cvs/trigger.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: trigger.c,v 1.1 2008/06/10 01:00:35 joris Exp $ */
+/* $OpenBSD: trigger.c,v 1.2 2008/06/10 02:07:58 joris Exp $ */
/*
* Copyright (c) 2008 Tobias Stoeckmann <tobias@openbsd.org>
* Copyright (c) 2008 Jonathan Armani <dbd@asystant.net>
@@ -310,8 +310,7 @@ cvs_trigger_getlines(char * file, char * repo)
lineno = 0;
nline = NULL;
- while ((currentline = fgetln(fp, &len)) != NULL)
- {
+ while ((currentline = fgetln(fp, &len)) != NULL) {
if (currentline[len - 1] == '\n') {
currentline[len - 1] = '\0';
} else {
@@ -369,6 +368,7 @@ cvs_trigger_getlines(char * file, char * repo)
regfree(&preg);
}
}
+
if (nline != NULL)
xfree(nline);