summaryrefslogtreecommitdiff
path: root/lib/libdisk
diff options
context:
space:
mode:
authorStefan Farfeleder <stefanf@FreeBSD.org>2005-03-08 21:46:18 +0000
committerStefan Farfeleder <stefanf@FreeBSD.org>2005-03-08 21:46:18 +0000
commitf51df9ed11373ddb551e81d7c8da4e5b3aaec3a4 (patch)
tree39fba09b57a5d6ce68f7da652242910dd166efe9 /lib/libdisk
parent9a9ef8b65a2d3fc64c5e448acc39f079221881fa (diff)
Notes
Diffstat (limited to 'lib/libdisk')
-rw-r--r--lib/libdisk/open_disk.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libdisk/open_disk.c b/lib/libdisk/open_disk.c
index 9e487a9bb154..745065202f0c 100644
--- a/lib/libdisk/open_disk.c
+++ b/lib/libdisk/open_disk.c
@@ -128,8 +128,7 @@ Int_Open_Disk(const char *name, char *conftxt)
lo[0] = 0;
for (; p != NULL && *p; p = q) {
- if (sn)
- sn = NULL;
+ sn = NULL;
q = strchr(p, '\n');
if (q != NULL)
*q++ = '\0';