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 /error.c | |
parent | 584a219576a6d95fb30e5b87fb6a37a7d819a110 (diff) |
Force brackets around one-line conditional statements
Diffstat (limited to 'error.c')
-rw-r--r-- | error.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -62,8 +62,9 @@ static const char *errormsg_table[] = { const char * error_str(unsigned int error) { - if (error >= ERRORMSG_TABLE_SIZE) + if (error >= ERRORMSG_TABLE_SIZE) { return "invalid error code"; + } return errormsg_table[error]; } |