aboutsummaryrefslogtreecommitdiffstats
path: root/nihil.ucl/map.ccm
diff options
context:
space:
mode:
Diffstat (limited to 'nihil.ucl/map.ccm')
-rw-r--r--nihil.ucl/map.ccm3
1 files changed, 2 insertions, 1 deletions
diff --git a/nihil.ucl/map.ccm b/nihil.ucl/map.ccm
index 1c5dd19..fa77601 100644
--- a/nihil.ucl/map.ccm
+++ b/nihil.ucl/map.ccm
@@ -88,7 +88,8 @@ private:
struct state {
state(::ucl_object_t const *obj)
{
- if ((iter = ::ucl_object_iterate_new(obj)) == nullptr)
+ iter = ::ucl_object_iterate_new(obj);
+ if (iter == nullptr)
throw std::system_error(make_error_code(
std::errc(errno)));
}