summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2009-04-23 01:47:04 -0700
committerJeremy Allison <jra@samba.org>2009-04-23 01:47:04 -0700
commit20127703938d10b05765e2cba85dbd3ad33a4fdb (patch)
treec459886582e07d826bec632c54f2ec56a9570bef
parent5abdc58f9822edbbf291c625dec7304c09f12e28 (diff)
downloadsamba-20127703938d10b05765e2cba85dbd3ad33a4fdb.tar.gz
samba-20127703938d10b05765e2cba85dbd3ad33a4fdb.tar.bz2
samba-20127703938d10b05765e2cba85dbd3ad33a4fdb.zip
Fix coverity #908, #909, uninitialized variable.
Jeremy.
-rw-r--r--source3/rpc_server/srv_spoolss_nt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c
index 962b729c26..9ad509efbb 100644
--- a/source3/rpc_server/srv_spoolss_nt.c
+++ b/source3/rpc_server/srv_spoolss_nt.c
@@ -8264,7 +8264,7 @@ WERROR _spoolss_AddForm(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;
@@ -8352,7 +8352,7 @@ WERROR _spoolss_DeleteForm(pipes_struct *p,
int count=0;
nt_forms_struct *list=NULL;
Printer_entry *Printer = find_printer_index_by_hnd(p, r->in.handle);
- int snum;
+ int snum = -1;
WERROR status = WERR_OK;
NT_PRINTER_INFO_LEVEL *printer = NULL;
SE_PRIV se_printop = SE_PRINT_OPERATOR;