Skip to content

Commit

Permalink
Fix CodeQL alert
Browse files Browse the repository at this point in the history
  • Loading branch information
marlenecota committed Apr 29, 2024
1 parent cf1f55f commit a8f522b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion include/fmt/base.h
Original file line number Diff line number Diff line change
Expand Up @@ -1902,7 +1902,9 @@ template <typename Context> class basic_format_args {
if (id >= detail::max_packed_args) return arg;
arg.type_ = type(id);
if (arg.type_ == detail::type::none_type) return arg;
arg.value_ = values_[id];
if (id >= 0) {
arg.value_ = values_[id];
}
return arg;
}

Expand Down

0 comments on commit a8f522b

Please sign in to comment.