diff options
author | Richard Braun <rbraun@sceen.net> | 2016-12-09 00:49:25 +0100 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2016-12-09 00:49:25 +0100 |
commit | 7d18174be52718790dd8f41ec21c681a407adfdf (patch) | |
tree | 1c414ac69d46457fa2fbaf9413c7e662e247bc08 /shell.c | |
parent | 584a219576a6d95fb30e5b87fb6a37a7d819a110 (diff) |
Force brackets around one-line conditional statements
Diffstat (limited to 'shell.c')
-rw-r--r-- | shell.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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); + } } } |