summaryrefslogtreecommitdiff
path: root/error.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 /error.c
parent584a219576a6d95fb30e5b87fb6a37a7d819a110 (diff)
Force brackets around one-line conditional statements
Diffstat (limited to 'error.c')
-rw-r--r--error.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/error.c b/error.c
index 0f89480..93d16ef 100644
--- a/error.c
+++ b/error.c
@@ -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];
}