Skip to content

Commit

Permalink
[vdisk] Attempt to inhibit spurious Coverity warning
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Brown <mbrown@fensystems.co.uk>
  • Loading branch information
mcb30 committed May 10, 2017
1 parent bb21155 commit 7f602ad
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/vdisk.c
Expand Up @@ -27,6 +27,7 @@
#include <stddef.h>
#include <string.h>
#include <stdio.h>
#include <assert.h>
#include "ctype.h"
#include "wimboot.h"
#include "vdisk.h"
Expand Down Expand Up @@ -402,6 +403,8 @@ static void vdisk_dir_files ( uint64_t lba, unsigned int count, void *data ) {

/* Identify file */
idx = VDISK_FILE_DIRENT_IDX ( lba );
assert ( idx < ( sizeof ( vdisk_files ) /
sizeof ( vdisk_files[0] ) ) );
file = &vdisk_files[idx];
if ( ! file->read )
continue;
Expand Down

0 comments on commit 7f602ad

Please sign in to comment.