]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Fix: Initialize variable and wrap standard IPP registration
authorabubakarsabir924-cell <abubakarsabir924@gmail.com>
Fri, 1 May 2026 20:00:27 +0000 (01:00 +0500)
committerabubakarsabir924-cell <abubakarsabir924@gmail.com>
Fri, 1 May 2026 20:00:27 +0000 (01:00 +0500)
scheduler/dirsvc.c

index 827c0c7af1c51c7ead58682d820217e0361d4ad4..91a06b9faf7a290530a9767102dc2a5a7e87f556 100644 (file)
@@ -460,8 +460,8 @@ dnssdRegisterPrinter(
 {
   char         name[256],              /* Service name */
                regtype[256];           /* Registration type(s) */
-  int          num_txt;                /* Number of IPP(S) TXT key/value pairs */
-  cups_option_t        *txt;                   /* IPP(S) TXT key/value pairs */
+  int          num_txt; = 0;           /* Number of IPP(S) TXT key/value pairs */
+  cups_option_t        *txt = NULL;            /* IPP(S) TXT key/value pairs */
   bool         status;                 /* Registration status */