diff --git a/tools/kwbimage.c b/tools/kwbimage.c index c50f2e2b2494d56c5f34e7660b54b0cb9752597d..2c302e5d4981e94c1969f47703da03062495fd01 100644 --- a/tools/kwbimage.c +++ b/tools/kwbimage.c @@ -728,7 +728,7 @@ static void kwbimage_set_header(void *ptr, struct stat *sbuf, int ifd, FILE *fcfg; void *image = NULL; int version; - size_t headersz; + size_t headersz = 0; uint32_t checksum; int ret; int size;