]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Fix: Initialize variable and wrap standard IPP registration
authorabubakarsabir924-cell <abubakarsabir924@gmail.com>
Sat, 2 May 2026 04:18:40 +0000 (09:18 +0500)
committerabubakarsabir924-cell <abubakarsabir924@gmail.com>
Sat, 2 May 2026 04:18:40 +0000 (09:18 +0500)
scheduler/dirsvc.c

index 201565c95318f98df7d413b25515e03dd8d91a4e..22a010771d63bde146b945baebb9a2485531b14a 100644 (file)
@@ -522,9 +522,9 @@ dnssdRegisterPrinter(
   // IPP service
   if (!BrowseIPPSOnly)
   {
-  num_txt = dnssdBuildTxtRecord(p, &txt);
+    num_txt = dnssdBuildTxtRecord(p, &txt);
 
-  if (p->type & CUPS_PTYPE_FAX)
+    if (p->type & CUPS_PTYPE_FAX)
   {
     if (DNSSDSubTypes)
       snprintf(regtype, sizeof(regtype), "_fax-ipp._tcp,%s", DNSSDSubTypes);