Skip to content

Commit

Permalink
modules/kvs: Fix errnum return corner case
Browse files Browse the repository at this point in the history
Fix corner case in which error from commit wasn't passed to
cleanup path correctly.
  • Loading branch information
chu11 committed Oct 12, 2017
1 parent ae3fbee commit ee92338
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/kvs/kvs.c
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ static void commit_apply (commit_t *c)
int errnum = 0;
commit_process_t ret;

if (commit_get_aux_errnum (c))
if ((errnum = commit_get_aux_errnum (c)))
goto done;

if ((ret = commit_process (c,
Expand Down

0 comments on commit ee92338

Please sign in to comment.