From: Andreas Schneider Date: Thu, 13 Jul 2023 07:25:50 +0000 (+0200) Subject: s3:printing: Rename variably to dummy to make codespell happy X-Git-Tag: ldb-2.8.0~104 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1517fd17094ee15ee63e2ce51624f4e72fe0e1b2;p=thirdparty%2Fsamba.git s3:printing: Rename variably to dummy to make codespell happy Signed-off-by: Andreas Schneider Reviewed-by: Joseph Sutton --- diff --git a/source3/printing/printing.c b/source3/printing/printing.c index f29775eed63..5cf170d4dae 100644 --- a/source3/printing/printing.c +++ b/source3/printing/printing.c @@ -2462,10 +2462,10 @@ static WERROR allocate_print_jobid(struct tdb_print_db *pdb, int snum, /* Store a dummy placeholder. */ { uint32_t tmp; - TDB_DATA dum; - dum.dptr = NULL; - dum.dsize = 0; - if (tdb_store(pdb->tdb, print_key(jobid, &tmp), dum, + TDB_DATA dummy = { + .dsize = 0, + }; + if (tdb_store(pdb->tdb, print_key(jobid, &tmp), dummy, TDB_INSERT) != 0) { DEBUG(3, ("allocate_print_jobid: " "jobid (%d) failed to store placeholder.\n",