Properly initialize ima flag when adding file measurements
[strongswan.git] / src / libpts / plugins / imv_attestation / attest_db.c
index 6f9b4ad..750a27b 100644 (file)
@@ -1159,7 +1159,7 @@ METHOD(attest_db_t, add, bool,
                chunk_t measurement, ima_template;
                pts_file_meas_t *measurements;
                hasher_t *hasher = NULL;
-               bool ima;
+               bool ima = FALSE;
                int fid, did;
                int files_added = 0, hashes_added = 0, ima_hashes_added = 0;
                enumerator_t *enumerator, *e;