mirror of
https://github.com/samba-team/samba.git
synced 2025-11-29 16:23:52 +03:00
r14430: ret can be NULL at the end of this loop
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
caead24b6d
commit
b607be9cda
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user