Skip to content

Commit 1a49e08

Browse files
authored
Merge pull request #153 from igaw/build-fix-fabrics
fabrics: Declare loop index at the beginning of the block
2 parents ddd725e + a71ba61 commit 1a49e08

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/nvme/fabrics.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -907,9 +907,12 @@ static int uuid_from_product_uuid(char *system_uuid)
907907
20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,
908908
-1 /* sentinel */
909909
};
910-
for (unsigned int i = 0; swaptbl[i] != -1; i++)
910+
int i;
911+
912+
for (i = 0; swaptbl[i] != -1; i++)
911913
system_uuid[i] = line[swaptbl[i]];
912914
system_uuid[UUID_SIZE-1] = '\0';
915+
913916
ret = 0;
914917
}
915918

0 commit comments

Comments
 (0)