1
0
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:
Jeremy Allison 2007-01-16 18:05:37 +00:00 committed by Gerald (Jerry) Carter
parent 840485686d
commit 34d891c81a

View File

@ -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 ) void* pathtree_find( SORTED_TREE *tree, char *key )
{ {
char *keystr, *base, *str, *p; char *keystr, *base = NULL, *str = NULL, *p;
TREE_NODE *current; TREE_NODE *current;
void *result = NULL; 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 ); trim_tree_keypath( p, &base, &str );
DEBUG(11,("pathtree_find: [loop] base => [%s], new_path => [%s]\n", DEBUG(11,("pathtree_find: [loop] base => [%s], new_path => [%s]\n",
base, str)); base ? base : "",
str ? str : ""));
/* iterate to the next child */ /* iterate to the next child */