From 4e7e1eee2598bdb0452f0c972c7faa4c255a11d1 Mon Sep 17 00:00:00 2001 From: Rose <83477269+AtariDreams@users.noreply.github.com> Date: Thu, 17 Nov 2022 10:47:14 -0500 Subject: [PATCH] Fix passing wrong variable to cupsGetOption in testcups dest is a pointer to a struct, not the array, which is dests. Honestly, I have no idea how this even compiled in the first place. Yes I know this is testcups, but still. --- cups/testcups.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cups/testcups.c b/cups/testcups.c index 53b4ffe2bd..e8271f8dd1 100644 --- a/cups/testcups.c +++ b/cups/testcups.c @@ -377,7 +377,7 @@ main(int argc, /* I - Number of command-line arguments */ for (i = 0, dest_name = NULL; i < num_dests; i ++) { - if ((dval = cupsGetOption("printer-is-temporary", dests[i].num_options, dest[i].options)) != NULL && !strcmp(dval, "false")) + if ((dval = cupsGetOption("printer-is-temporary", dests[i].num_options, dests[i].options)) != NULL && !strcmp(dval, "false")) { dest_name = dests[i].name; break; -- 2.47.2