Skip to content

Commit

Permalink
Add missing error string in ABT_error_get_str
Browse files Browse the repository at this point in the history
The error string for ABT_ERR_INV_MUTEX_ATTR was missing in  the lookup
table for error strings.

This lead to
 * segmentation fault when ABT_error_str is called with err=ABT_ERR_FEATURE_NA
 * incorrect error strings for err>ABT_ERR_INV_MUTEX
  • Loading branch information
bcumming authored and halimamer committed Apr 6, 2018
1 parent 8e1588a commit 054226b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/error.c
Expand Up @@ -49,6 +49,7 @@ int ABT_error_get_str(int err, char *str, size_t *len)
"ABT_ERR_INV_TASK",
"ABT_ERR_INV_KEY",
"ABT_ERR_INV_MUTEX",
"ABT_ERR_INV_MUTEX_ATTR",
"ABT_ERR_INV_COND",
"ABT_ERR_INV_RWLOCK",
"ABT_ERR_INV_EVENTUAL",
Expand Down

0 comments on commit 054226b

Please sign in to comment.