Lines Matching refs:new_dest
814 cups_dest_t *new_dest; /* New destination pointer */ in cupsCopyDest() local
830 if ((new_dest = cupsGetDest(dest->name, dest->instance, num_dests, in cupsCopyDest()
837 if (new_dest == dest) in cupsCopyDest()
844 cupsFreeOptions(new_dest->num_options, new_dest->options); in cupsCopyDest()
846 new_dest->num_options = 0; in cupsCopyDest()
847 new_dest->options = NULL; in cupsCopyDest()
850 new_dest = cups_add_dest(dest->name, dest->instance, &num_dests, dests); in cupsCopyDest()
852 if (new_dest) in cupsCopyDest()
854 if ((new_dest->options = calloc(sizeof(cups_option_t), (size_t)dest->num_options)) == NULL) in cupsCopyDest()
857 new_dest->num_options = dest->num_options; in cupsCopyDest()
860 new_option = new_dest->options; in cupsCopyDest()