]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Fix bug that removes language instead of country code 232/head
authorRose <83477269+AtariDreams@users.noreply.github.com>
Mon, 30 Aug 2021 18:05:53 +0000 (14:05 -0400)
committerGitHub <noreply@github.com>
Mon, 30 Aug 2021 18:05:53 +0000 (14:05 -0400)
Because of this bug, the two if branches were identical and the do while loop was only running once.

scheduler/client.c

index c61234072b0a211d1880be95fe92236702495020..e709ca2674d3a3384df94844a2fcdb3c716ae26f 100644 (file)
@@ -2934,7 +2934,7 @@ get_file(cupsd_client_t *con,             /* I  - Client connection */
        */
 
        if (language[3])
-         language[0] = '\0';           /* Strip country code */
+         language[3] = '\0';           /* Strip country code */
        else
          language[0] = '\0';           /* Strip language */
       }