Commit Diff
--- lib/patch.c +++ lib/patch.c @@ -706,6 +706,7 @@ open_blob(char **path, FILE **fp, const char *blobid, return err; idptr = matched_id; } else { + memset(&id, 0, sizeof(id)); if (!got_parse_sha1_digest(id.hash, blobid)) return got_error(GOT_ERR_BAD_OBJ_ID_STR); idptr = &id;