diff options
author | stefanf <stefanf@FreeBSD.org> | 2005-03-08 21:46:18 +0000 |
---|---|---|
committer | stefanf <stefanf@FreeBSD.org> | 2005-03-08 21:46:18 +0000 |
commit | 2619687e843fda7da731da685dbfff9deba2f059 (patch) | |
tree | 39fba09b57a5d6ce68f7da652242910dd166efe9 /lib | |
parent | 25e912bfe08d5e8277d1c674b644575bf80cf21d (diff) | |
download | FreeBSD-src-2619687e843fda7da731da685dbfff9deba2f059.zip FreeBSD-src-2619687e843fda7da731da685dbfff9deba2f059.tar.gz |
Initialise `sn' before using its value.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libdisk/open_disk.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libdisk/open_disk.c b/lib/libdisk/open_disk.c index 9e487a9..7450652 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'; |