Skip to content

Commit

Permalink
fixup! add missing errno setting
Browse files Browse the repository at this point in the history
  • Loading branch information
dongahn committed Jun 18, 2020
1 parent b22cfd9 commit 698f8c5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions resource/modules/resource_match.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1145,6 +1145,7 @@ static int get_stat_by_rank (std::shared_ptr<resource_ctx_t>& ctx, json_t *o)
}
if ( (rc = json_object_set_new (o, str,
json_integer (static_cast<json_int_t> (kv.first)))) < 0) {
errno = ENOMEM;
goto done;
}
saved_errno = errno;
Expand Down

0 comments on commit 698f8c5

Please sign in to comment.