Skip to content

Commit

Permalink
modules/kvs/: Fix compiler error
Browse files Browse the repository at this point in the history
treeobj_is_dirref() returns bool, not int.
  • Loading branch information
chu11 committed Aug 18, 2017
1 parent 807dacc commit 175ba7a
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 @@ -730,7 +730,7 @@ static void get_request_cb (flux_t *h, flux_msg_handler_t *w,
*/
if (root_dirent) {
if (treeobj_validate (root_dirent) < 0
|| treeobj_is_dirref (root_dirent) < 0
|| !treeobj_is_dirref (root_dirent)
|| !(root_ref = treeobj_get_blobref (root_dirent, 0))) {
errno = EINVAL;
goto done;
Expand Down

0 comments on commit 175ba7a

Please sign in to comment.