diff options
author | Andrew Tridgell <tridge@samba.org> | 2006-03-15 05:50:15 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:57:22 -0500 |
commit | 24c76df16637f4fb13e057741591fb398268e857 (patch) | |
tree | 28cba470bfc181ca0a6dc0f7858cc21d503d73ac /source4 | |
parent | 69408532e75bc621439239fb808ca79e2910dcbc (diff) | |
download | samba-24c76df16637f4fb13e057741591fb398268e857.tar.gz samba-24c76df16637f4fb13e057741591fb398268e857.tar.bz2 samba-24c76df16637f4fb13e057741591fb398268e857.zip |
r14430: ret can be NULL at the end of this loop
(This used to be commit b607be9cdad5a9bd672698cb31a2af81d59d0763)
Diffstat (limited to 'source4')
-rw-r--r-- | source4/lib/ldb/common/ldb_parse.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/lib/ldb/common/ldb_parse.c b/source4/lib/ldb/common/ldb_parse.c index 52e7522b85..939bf31eb9 100644 --- a/source4/lib/ldb/common/ldb_parse.c +++ b/source4/lib/ldb/common/ldb_parse.c @@ -193,7 +193,9 @@ static struct ldb_val **ldb_wildcard_decode(void *mem_ctx, const char *string) val++; } - ret[val] = NULL; + if (ret != NULL) { + ret[val] = NULL; + } return ret; } |