mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
r8327: * don't use unitialized variables
(This used to be commit bd87819795
)
This commit is contained in:
parent
f2ff8bed26
commit
b5c7572419
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user