]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
libsmb: Save a few lines with direct var initialization
authorVolker Lendecke <vl@samba.org>
Mon, 23 Jun 2025 14:12:26 +0000 (16:12 +0200)
committerVolker Lendecke <vl@samba.org>
Tue, 2 Sep 2025 08:08:29 +0000 (08:08 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Anoop C S <anoopcs@samba.org>
source3/libsmb/libsmb_xattr.c

index d07f9bee5693ae831d153d9b0561b0aab2c0f445..079253baeec43fd0daa7f17230890f3212ac4216 100644 (file)
@@ -46,13 +46,11 @@ find_lsa_pipe_hnd(struct cli_state *ipc_cli)
        for (pipe_hnd = ipc_cli->pipe_list;
              pipe_hnd;
              pipe_hnd = pipe_hnd->next) {
-               struct dcerpc_binding_handle *bh = NULL;
-               const struct dcerpc_binding *bd = NULL;
-               struct ndr_syntax_id syntax;
-
-               bh = pipe_hnd->binding_handle;
-               bd = dcerpc_binding_handle_get_binding(bh);
-               syntax = dcerpc_binding_get_abstract_syntax(bd);
+               struct dcerpc_binding_handle *bh = pipe_hnd->binding_handle;
+               const struct dcerpc_binding *bd =
+                       dcerpc_binding_handle_get_binding(bh);
+               struct ndr_syntax_id syntax =
+                       dcerpc_binding_get_abstract_syntax(bd);
 
                if (ndr_syntax_id_equal(&syntax,
                                        &ndr_table_lsarpc.syntax_id)) {