s3:torture: Initialize pointer with NULL
authorAndreas Schneider <asn@samba.org>
Fri, 10 Dec 2021 16:24:43 +0000 (17:24 +0100)
committerJeremy Allison <jra@samba.org>
Sat, 11 Dec 2021 00:25:46 +0000 (00:25 +0000)
commitf7e1a81cc05fdffb2c377bdc480e974a70f76bef
tree36db323d7f03636134391b54f4b564b4f60acbed
parentea2ec7ea5e891f662278dc0fae9f87b426196f2e
s3:torture: Initialize pointer with NULL

source3/torture/torture.c:4309:17: error: ‘pname’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
 4309 |                 printf("qfilename gave different name? [%s] [%s]\n",
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 4310 |                        fname, pname);
      |                        ~~~~~~~~~~~~~

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Sat Dec 11 00:25:46 UTC 2021 on sn-devel-184
source3/torture/torture.c