Skip to content

Commit

Permalink
[Java/C] Fix CodeQL errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeb01 committed Jun 12, 2024
1 parent 5040230 commit 6bda98e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion aeron-client/src/test/java/io/aeron/ImageTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,6 @@ void shouldInvalidateFragment()
final int initialOffset = TERM_BUFFER_LENGTH - (ALIGNED_FRAME_LENGTH * 2);
final long initialPosition = computePosition(
INITIAL_TERM_ID, initialOffset, POSITION_BITS_TO_SHIFT, INITIAL_TERM_ID);
final long maxPosition = (long)Integer.MAX_VALUE + 1000;
position.setOrdered(initialPosition);
final Image image = createImage();

Expand Down
5 changes: 3 additions & 2 deletions aeron-driver/src/main/c/aeron_driver_conductor.c
Original file line number Diff line number Diff line change
Expand Up @@ -5504,11 +5504,12 @@ int aeron_driver_conductor_on_invalidate_image(
const int64_t image_correlation_id = command->image_correlation_id;
aeron_publication_image_t *image = aeron_driver_conductor_find_publication_image(
conductor, image_correlation_id);

if (NULL == image)
{
AERON_SET_ERR(
AERON_ERROR_CODE_GENERIC_ERROR, "Unable to resolve image for correlationId=", image_correlation_id);
AERON_ERROR_CODE_GENERIC_ERROR,
"Unable to resolve image for correlationId=%" PRId64, image_correlation_id);
return -1;
}

Expand Down

0 comments on commit 6bda98e

Please sign in to comment.