Message ID | 20240531201222.GS52987@frogsfrogsfrogs (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | xfs_io: fix gcc complaints about potentially uninitialized variables | expand |
Looks good:
Reviewed-by: Christoph Hellwig <hch@lst.de>
diff --git a/io/bulkstat.c b/io/bulkstat.c index 829f6a025153..f312c6d55f47 100644 --- a/io/bulkstat.c +++ b/io/bulkstat.c @@ -301,7 +301,7 @@ bulkstat_single_f( for (i = optind; i < argc; i++) { struct single_map *sm = tags; - uint64_t ino; + uint64_t ino = NULLFSINO; unsigned int flags = 0; /* Try to look up our tag... */ @@ -314,7 +314,7 @@ bulkstat_single_f( } /* ...or else it's an inode number. */ - if (sm->tag == NULL) { + if (ino == NULLFSINO) { errno = 0; ino = strtoull(argv[i], NULL, 10); if (errno) {