]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
Fix Coverity ID 565
authorVolker Lendecke <vl@samba.org>
Wed, 5 Mar 2008 16:20:01 +0000 (17:20 +0100)
committerGünther Deschner <gd@samba.org>
Wed, 5 Mar 2008 17:45:34 +0000 (18:45 +0100)
This would crash safely

source/rpc_server/srv_winreg_nt.c

index 7ff93e0b07e23b168629d18955a1757b1b0b0c32..c76bc19d9ce4b6205c6aaf23cb796e8af9c30bca 100644 (file)
@@ -508,8 +508,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;