Skip to content

Commit

Permalink
Make sure we don't add extra copies of printers.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelrsweet committed Dec 18, 2024
1 parent 0a28913 commit b0d1f90
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ libcups v3.0rc4 (YYYY-MM-DD)
`--client-name` options.
- Updated `cupsOAuthGetMetadata` to support Microsoft Azure/Entra OAuth
servers.
- Fixed a duplicate printer reporting bug in `cupsGetDests`.


libcups v3.0rc3 (2024-10-22)
Expand Down
4 changes: 2 additions & 2 deletions cups/dest.c
Original file line number Diff line number Diff line change
Expand Up @@ -3050,9 +3050,9 @@ cups_get_cb(_cups_getdata_t *data, // I - Data from cupsGetDests
// Remove destination from array...
data->num_dests = cupsRemoveDest(dest->name, dest->instance, data->num_dests, &data->dests);
}
else
else if (!cupsGetDest(dest->name, dest->instance, data->num_dests, data->dests))
{
// Add destination to array...
// Add destination to array if not already present...
data->num_dests = cupsCopyDest(dest, data->num_dests, &data->dests);
}

Expand Down

0 comments on commit b0d1f90

Please sign in to comment.