From 175ba7ad8751c0585cc7bb4bf88d28c5488ed214 Mon Sep 17 00:00:00 2001 From: Albert Chu Date: Fri, 18 Aug 2017 15:54:42 -0700 Subject: [PATCH] modules/kvs/: Fix compiler error treeobj_is_dirref() returns bool, not int. --- src/modules/kvs/kvs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/kvs/kvs.c b/src/modules/kvs/kvs.c index cbca2b554529..4b06b6aae78d 100644 --- a/src/modules/kvs/kvs.c +++ b/src/modules/kvs/kvs.c @@ -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;