]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:printing: Rename variably to dummy to make codespell happy
authorAndreas Schneider <asn@samba.org>
Thu, 13 Jul 2023 07:25:50 +0000 (09:25 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Wed, 19 Jul 2023 09:58:37 +0000 (09:58 +0000)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Joseph Sutton <josephsutton@catalyst.net.nz>
source3/printing/printing.c

index f29775eed637c989c200ba9794ff2f34640be99d..5cf170d4daece48266136d56bc7c8cfb0a590d1b 100644 (file)
@@ -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",