The GitHub Actions job "CI" on kvrocks.git/unstable has succeeded.
Run started by GitHub user jihuayu (triggered by jihuayu).

Head commit for run:
797649012faa4ebf010e1558ba891df67d68cfc9 / Songqing Zhang 
<[email protected]>
fix(zset): initialize *inter_cnt before early return in InterCard (#3421)

When any input key is empty (mscores.empty()), InterCard returned OK
    without ever assigning *inter_cnt, leaving callers with an
    uninitialized value. Redis ZINTERCARD should return 0 in this case.

Fix by initializing *inter_cnt = 0 at the function entry.

Although the count at the caller layer is initialized to 0, which seems
to be fortuitously safe, other potential callers (such as internal
calls, test code, and future refactoring) may not necessarily initialize
it beforehand.

Co-authored-by: 纪华裕 <[email protected]>

Report URL: https://github.com/apache/kvrocks/actions/runs/24130728886

With regards,
GitHub Actions via GitBox

Reply via email to