summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2005-07-11 19:18:15 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:58:20 -0500
commitb5c757241927353949ceae978d0dbcb90516bce0 (patch)
treea4a2facc17eb2da0999d72d1905786f4592d5927
parentf2ff8bed26cc8b0f2fffbc41a605a8f95163a382 (diff)
downloadsamba-b5c757241927353949ceae978d0dbcb90516bce0.tar.gz
samba-b5c757241927353949ceae978d0dbcb90516bce0.tar.bz2
samba-b5c757241927353949ceae978d0dbcb90516bce0.zip
r8327: * don't use unitialized variables
(This used to be commit bd878197954cf4d259dfd01f2d4cb4a663b34121)
-rw-r--r--source3/registry/reg_printing.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source3/registry/reg_printing.c b/source3/registry/reg_printing.c
index 0fd1c488d1..c1f7d3925f 100644
--- a/source3/registry/reg_printing.c
+++ b/source3/registry/reg_printing.c
@@ -225,7 +225,6 @@ static int key_printers_fetch_keys( const char *key, REGSUBKEY_CTR *subkeys )
char *printername, *printerdatakey;
NT_PRINTER_INFO_LEVEL *printer = NULL;
fstring *subkey_names = NULL;
- fstring sharename;
DEBUG(10,("key_printers_fetch_keys: key=>[%s]\n", key ? key : "NULL" ));
@@ -256,8 +255,8 @@ static int key_printers_fetch_keys( const char *key, REGSUBKEY_CTR *subkeys )
reg_split_path( printers_key, &printername, &printerdatakey );
- if ( find_service(sharename) == -1
- || !W_ERROR_IS_OK( get_a_printer(NULL, &printer, 2, sharename) ) )
+ if ( find_service(printername) == -1
+ || !W_ERROR_IS_OK( get_a_printer(NULL, &printer, 2, printername) ) )
{
return -1;
}