Fix a couple of unused-comparison clang warnings

This commit is contained in:
Jon Trulson
2021-12-12 12:52:14 -07:00
parent 75ea7be520
commit ab409095d6
2 changed files with 2 additions and 2 deletions

View File

@@ -1771,7 +1771,7 @@ populate_obj_menu(
* Set the label of the menu items to be the names of the ABObj's
*/
for (i = 0, trav_open(&trav, parent, AB_TRAV_SALIENT_CHILDREN);
i < num_items_needed, (cur_obj = trav_next(&trav)) != NULL; )
i < num_items_needed && (cur_obj = trav_next(&trav)) != NULL; )
{
char *label;