From 24c76df16637f4fb13e057741591fb398268e857 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 15 Mar 2006 05:50:15 +0000 Subject: r14430: ret can be NULL at the end of this loop (This used to be commit b607be9cdad5a9bd672698cb31a2af81d59d0763) --- source4/lib/ldb/common/ldb_parse.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source4/lib/ldb/common/ldb_parse.c') 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; } -- cgit