Fix Coverity ID 565
authorVolker Lendecke <vl@samba.org>
Wed, 5 Mar 2008 16:20:01 +0000 (17:20 +0100)
committerKarolin Seeger <kseeger@samba.org>
Mon, 5 May 2008 13:43:25 +0000 (15:43 +0200)
This would crash safely
(cherry picked from commit 0f14357c86aee9a76ffbb45ea6419f4cc4106d62)

source/rpc_server/srv_winreg_nt.c

index 02dfd402e8825680865bf03579d3c75519c1d41d..7b7487110481fab7abe4a6f0ada2a78307722a4b 100644 (file)
@@ -510,8 +510,6 @@ WERROR _winreg_InitiateSystemShutdownEx(pipes_struct *p, struct winreg_InitiateS
 
        /* pull the message string and perform necessary sanity checks on it */
 
-       chkmsg[0] = '\0';
-
        if ( r->in.message && r->in.message->name && r->in.message->name->name ) {
                if ( (msg = talloc_strdup(p->mem_ctx, r->in.message->name->name )) == NULL ) {
                        return WERR_NOMEM;