aboutsummaryrefslogtreecommitdiff
path: root/examples/commands
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-04-06 19:20:07 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-04-06 19:20:07 -0400
commit1d2e55f53dfab5153dbfd0c03f28cd9daedb3b77 (patch)
treeaa1c21191800467abe0b3d16cb6c2a0c2e4587f9 /examples/commands
parentbc93dea8186168aa015b05a615bc1873173393b5 (diff)
Allow uninitialized variables when there's a sensible empty value
(defaults to empty/zero value)
Diffstat (limited to 'examples/commands')
-rw-r--r--examples/commands/commands.tm4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/commands/commands.tm b/examples/commands/commands.tm
index 2dd5aaf7..81c43692 100644
--- a/examples/commands/commands.tm
+++ b/examples/commands/commands.tm
@@ -54,8 +54,8 @@ struct Command(command:Text, args:[Text]=[], env:{Text=Text}={})
if input.length > 0
(&input_bytes).insert_all(input.bytes())
- stdout : [Byte] = []
- stderr : [Byte] = []
+ stdout : [Byte]
+ stderr : [Byte]
status := run_command(command.command, command.args, command.env, input_bytes, &stdout, &stderr)
if inline C : Bool { WIFEXITED(_$status) }