Skip to content

Commit 972bc18

Browse files
committed
swift-backtrace: Fix a timespec initialization warning.
NFC.
1 parent 73b301d commit 972bc18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/libexec/swift-backtrace/main.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ Generate a backtrace for the parent process.
551551
// If the output path is a directory, generate a filename
552552
let name = target!.name
553553
let pid = target!.pid
554-
var now = timespec()
554+
var now = timespec(tv_sec: 0, tv_nsec: 0)
555555

556556
if clock_gettime(CLOCK_REALTIME, &now) != 0 {
557557
now.tv_sec = time(nil)

0 commit comments

Comments
 (0)