summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Ziegler <klausz@haus-gisela.de>2021-07-20 15:31:36 +0200
committerDan McDonald <danmcd@joyent.com>2021-07-22 19:37:08 -0400
commit03074a12e5b3eb5b96ab8b5d9bd21883e57a020c (patch)
tree9bde8764b607241714ba46b35fbccce73ddf49e1
parente9175934c9394b414674b31736e16b71959fd498 (diff)
downloadillumos-joyent-03074a12e5b3eb5b96ab8b5d9bd21883e57a020c.tar.gz
13956 prtvtoc.c:386: error: idx may be used uninitialized in this function
Reviewed by: Hans Rosenfeld <rosenfeld@grumpf.hope-2000.org> Reviewed by: Sebastian Wiedenroth <wiedi@frubar.net> Approved by: Dan McDonald <danmcd@joyent.com>
-rw-r--r--usr/src/cmd/prtvtoc/prtvtoc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/src/cmd/prtvtoc/prtvtoc.c b/usr/src/cmd/prtvtoc/prtvtoc.c
index 098670ba96..b0d4c2c6df 100644
--- a/usr/src/cmd/prtvtoc/prtvtoc.c
+++ b/usr/src/cmd/prtvtoc/prtvtoc.c
@@ -384,7 +384,7 @@ static int
prtvtoc(char *devname)
{
int fd;
- int idx;
+ int idx = 0;
freemap_t *freemap;
struct stat sb;
struct extvtoc vtoc;