Skip to content

Commit

Permalink
more checking of input parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardhartnett committed Dec 25, 2024
1 parent 8dc7822 commit 19e8fe7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/tst_inq.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,9 @@ main()
return G2C_ERROR;

/* This won't work - bad msg number. */
if (g2c_inq_msg(g2cid, -1, NULL, NULL, NULL, NULL, NULL, NULL, NULL) != G2C_ENOMSG)
if (g2c_inq_msg(g2cid, -1, NULL, NULL, NULL, NULL, NULL, NULL, NULL) != G2C_EBADID)
return G2C_ERROR;
/* This won't work - msg number won't be found. */
if (g2c_inq_msg(g2cid, NUM_MSG, NULL, NULL, NULL, NULL, NULL, NULL, NULL) != G2C_ENOMSG)
return G2C_ERROR;

Expand Down

0 comments on commit 19e8fe7

Please sign in to comment.