The branch, master has been updated
       via  f7e1a81cc05 s3:torture: Initialize pointer with NULL
      from  ea2ec7ea5e8 WHATSNEW. Added section about samba-dcerpcd.

https://git.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit f7e1a81cc05fdffb2c377bdc480e974a70f76bef
Author: Andreas Schneider <a...@samba.org>
Date:   Fri Dec 10 17:24:43 2021 +0100

    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 <a...@samba.org>
    Reviewed-by: Jeremy Allison <j...@samba.org>
    
    Autobuild-User(master): Jeremy Allison <j...@samba.org>
    Autobuild-Date(master): Sat Dec 11 00:25:46 UTC 2021 on sn-devel-184

-----------------------------------------------------------------------

Summary of changes:
 source3/torture/torture.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


Changeset truncated at 500 lines:

diff --git a/source3/torture/torture.c b/source3/torture/torture.c
index b69125202f2..a68fc63f177 100644
--- a/source3/torture/torture.c
+++ b/source3/torture/torture.c
@@ -4391,7 +4391,7 @@ static bool run_trans2test(int dummy)
        const char *fname = "\\trans2.tst";
        const char *dname = "\\trans2";
        const char *fname2 = "\\trans2\\trans2.tst";
-       char *pname;
+       char *pname = NULL;
        bool correct = True;
        NTSTATUS status;
        uint32_t fs_attr;


-- 
Samba Shared Repository

Reply via email to