]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Check for value, not name 830/head
authorZdenek Dohnal <zdohnal@redhat.com>
Thu, 23 Nov 2023 14:42:12 +0000 (15:42 +0100)
committerZdenek Dohnal <zdohnal@redhat.com>
Thu, 23 Nov 2023 14:42:12 +0000 (15:42 +0100)
systemv/lpstat.c

index 4dae7358bc5aa542748b4bdaedecaaa7cea9ac72..31d97eda63ae19553e4470d7f3acea570c034e0c 100644 (file)
@@ -1478,7 +1478,7 @@ show_jobs(const char *dests,              /* I - Destinations */
       if (match_list(dests, dest) && match_list(users, username))
       {
        if (!strcmp(which, "successful") && (!reasons || (reasons &&
-           strcmp(reasons->name, "job-completed-successfully"))))
+           strcmp(reasons->values[0].string.text, "job-completed-successfully"))))
          continue;
 
        snprintf(temp, sizeof(temp), "%s-%d", dest, jobid);