diff --git a/image.c b/image.c index ef2ad6f..435f8a5 100644 --- a/image.c +++ b/image.c @@ -395,6 +395,7 @@ int image_write(struct image *image, const char *filename) uint8_t pad[8]; is_signed = image->sigbuf && image->sigsize; + padlen = 0; /* optionally update the image to contain signature data */ if (is_signed) {