Skip to content

Commit 451c79a

Browse files
committed
const fdData
1 parent ff90c98 commit 451c79a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vminitd/Sources/vmexec/ExecCommand.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ struct ExecCommand: ParsableCommand {
125125
}
126126

127127
var fdCopy = hostFd
128-
var fdData = Data(bytes: &fdCopy, count: MemoryLayout.size(ofValue: fdCopy))
128+
let fdData = Data(bytes: &fdCopy, count: MemoryLayout.size(ofValue: fdCopy))
129129
try childPipe.fileHandleForWriting.write(contentsOf: fdData)
130130
try childPipe.fileHandleForWriting.close()
131131

0 commit comments

Comments
 (0)