summaryrefslogtreecommitdiff
path: root/error.c
diff options
context:
space:
mode:
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];
}