]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
Fix coverity #908, #909, uninitialized variable.
authorJeremy Allison <jra@samba.org>
Thu, 23 Apr 2009 08:47:04 +0000 (01:47 -0700)
committerJeremy Allison <jra@samba.org>
Thu, 23 Apr 2009 08:47:04 +0000 (01:47 -0700)
Jeremy.

source3/rpc_server/srv_spoolss_nt.c

index 962b729c26d6bc4778ea08ad3b05104845780c53..9ad509efbb6001746d4054a01d621313f6e7e7dd 100644 (file)
@@ -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;