Skip to content

Commit 4c475f0

Browse files
authored
Merge pull request #400 from oasisprotocol/kostko/fix/rofl-build-null-eids
fix(cmd/rofl): Fix incorrect enclave id list generation
2 parents 14125c5 + 4a8ec4d commit 4c475f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/rofl/build/build.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ var (
249249
fmt.Println("Next time you can also use the --update-manifest flag to apply changes.")
250250
case true:
251251
// Update the manifest with the given enclave identities, overwriting existing ones.
252-
deployment.Policy.Enclaves = make([]sgx.EnclaveIdentity, len(ids))
252+
deployment.Policy.Enclaves = make([]sgx.EnclaveIdentity, 0, len(ids))
253253
for _, id := range ids {
254254
deployment.Policy.Enclaves = append(deployment.Policy.Enclaves, id.Enclave)
255255
}

0 commit comments

Comments
 (0)