mirror of
https://github.com/samba-team/samba.git
synced 2025-03-10 12:58:35 +03:00
r20838: Small fix from Jiri.Sasek@Sun.COM to fix null
pointer deref. Jeremy
This commit is contained in:
parent
840485686d
commit
34d891c81a
@ -334,7 +334,7 @@ static void pathtree_print_children( TREE_NODE *node, int debug, const char *pat
|
||||
|
||||
void* pathtree_find( SORTED_TREE *tree, char *key )
|
||||
{
|
||||
char *keystr, *base, *str, *p;
|
||||
char *keystr, *base = NULL, *str = NULL, *p;
|
||||
TREE_NODE *current;
|
||||
void *result = NULL;
|
||||
|
||||
@ -383,7 +383,8 @@ static void pathtree_print_children( TREE_NODE *node, int debug, const char *pat
|
||||
trim_tree_keypath( p, &base, &str );
|
||||
|
||||
DEBUG(11,("pathtree_find: [loop] base => [%s], new_path => [%s]\n",
|
||||
base, str));
|
||||
base ? base : "",
|
||||
str ? str : ""));
|
||||
|
||||
/* iterate to the next child */
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user