summaryrefslogtreecommitdiff
path: root/shell.c
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2016-12-09 00:49:25 +0100
committerRichard Braun <rbraun@sceen.net>2016-12-09 00:49:25 +0100
commit7d18174be52718790dd8f41ec21c681a407adfdf (patch)
tree1c414ac69d46457fa2fbaf9413c7e662e247bc08 /shell.c
parent584a219576a6d95fb30e5b87fb6a37a7d819a110 (diff)
Force brackets around one-line conditional statements
Diffstat (limited to 'shell.c')
-rw-r--r--shell.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/shell.c b/shell.c
index 4232bb6..a02bec2 100644
--- a/shell.c
+++ b/shell.c
@@ -858,8 +858,9 @@ shell_process_tabulation(void)
for (i = 0; i < size; i++) {
error = shell_process_raw_char(name[i]);
- if (error)
+ if (error) {
goto out;
+ }
}
error = 0;
@@ -1144,7 +1145,8 @@ shell_setup(void)
for (i = 0; i < ARRAY_SIZE(shell_default_cmds); i++) {
error = shell_cmd_register(&shell_default_cmds[i]);
- if (error)
+ if (error) {
error_die(error);
+ }
}
}