From: abubakarsabir924-cell Date: Fri, 1 May 2026 20:00:27 +0000 (+0500) Subject: Fix: Initialize variable and wrap standard IPP registration X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=49e637c673a95c43ca82fb5e43bd299b36339ade;p=thirdparty%2Fcups.git Fix: Initialize variable and wrap standard IPP registration --- diff --git a/scheduler/dirsvc.c b/scheduler/dirsvc.c index 827c0c7af1..91a06b9faf 100644 --- a/scheduler/dirsvc.c +++ b/scheduler/dirsvc.c @@ -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 */