Fix coverity #910, uninitialized variable.
authorJeremy Allison <jra@samba.org>
Thu, 23 Apr 2009 08:38:21 +0000 (01:38 -0700)
committerJeremy Allison <jra@samba.org>
Thu, 23 Apr 2009 08:38:21 +0000 (01:38 -0700)
Jeremy.

source3/rpc_server/srv_spoolss_nt.c

index 64f18537e01549296bc46e263b857e2a4695ee74..962b729c26d6bc4778ea08ad3b05104845780c53 100644 (file)
@@ -8429,7 +8429,7 @@ WERROR _spoolss_SetForm(pipes_struct *p,
 {
        struct spoolss_AddFormInfo1 *form = r->in.info.info1;
        nt_forms_struct tmpForm;
-       int snum;
+       int snum = -1;
        WERROR status = WERR_OK;
        NT_PRINTER_INFO_LEVEL *printer = NULL;
        SE_PRIV se_printop = SE_PRINT_OPERATOR;