1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

r8327: * don't use unitialized variables

(This used to be commit bd87819795)
This commit is contained in:
Gerald Carter 2005-07-11 19:18:15 +00:00 committed by Gerald (Jerry) Carter
parent f2ff8bed26
commit b5c7572419

View File

@ -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;
}