diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2010-03-23 14:59:31 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2010-03-23 14:59:31 +0000 |
commit | d272a6541efacb3e00d7f8dd574f1d3e76e313df (patch) | |
tree | c70166ad53be025cf80efc355b830a1e2c1d46b3 | |
parent | 2ed309b1014e684597eec0cce043ee97e24b285e (diff) |
avoid use of uninited var in max_partition_size(); ok krw@
-rw-r--r-- | sbin/disklabel/editor.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/disklabel/editor.c b/sbin/disklabel/editor.c index c45ef1322eb..57d4856e439 100644 --- a/sbin/disklabel/editor.c +++ b/sbin/disklabel/editor.c @@ -1,4 +1,4 @@ -/* $OpenBSD: editor.c,v 1.227 2010/03/23 14:32:34 otto Exp $ */ +/* $OpenBSD: editor.c,v 1.228 2010/03/23 14:59:30 otto Exp $ */ /* * Copyright (c) 1997-2000 Todd C. Miller <Todd.Miller@courtesan.com> @@ -2341,7 +2341,7 @@ max_partition_size(struct disklabel *lp, int partno) { struct partition *pp = &lp->d_partitions[partno]; struct diskchunk *chunks; - u_int64_t maxsize, offset; + u_int64_t maxsize = 0, offset; int fstype, i; fstype = pp->p_fstype; |