]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Avoid double make strings (Make Make Model)
authorMichael R Sweet <msweet@msweet.org>
Tue, 1 Apr 2025 18:53:22 +0000 (14:53 -0400)
committerMichael R Sweet <msweet@msweet.org>
Tue, 1 Apr 2025 18:53:22 +0000 (14:53 -0400)
backend/dnssd.c

index 006becbdbe55fb72e4f63ad331cd03e32c3d8ed0..2db9fe642a40a52c4feca0326d34ca00c757139f 100644 (file)
@@ -1,7 +1,7 @@
 //
 // DNS-SD discovery backend for CUPS.
 //
-// Copyright © 2020-2024 by OpenPrinting.
+// Copyright © 2020-2025 by OpenPrinting.
 // Copyright © 2008-2018 by Apple Inc.
 //
 // Licensed under Apache License v2.0.  See the file "LICENSE" for more
@@ -666,7 +666,7 @@ query_callback(
   if (device->make_and_model)
     free(device->make_and_model);
 
-  if (make_and_model[0])
+  if (make_and_model[0] && strncmp(make_and_model, model, strlen(make_and_model)))
   {
     cupsConcatString(make_and_model, " ", sizeof(make_and_model));
     cupsConcatString(make_and_model, model, sizeof(make_and_model));