mirror of
https://github.com/samba-team/samba.git
synced 2025-01-08 21:18:16 +03:00
smbd: Remove a pointless NULL check
boolean short-circuiting already gives us this condition. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
5130ade688
commit
a8dd943c11
@ -733,7 +733,7 @@ bool is_in_path(const char *name, name_compare_entry *namelist, bool case_sensit
|
||||
const char *last_component;
|
||||
|
||||
/* if we have no list it's obviously not in the path */
|
||||
if((namelist == NULL ) || ((namelist != NULL) && (namelist[0].name == NULL))) {
|
||||
if ((namelist == NULL) || (namelist[0].name == NULL)) {
|
||||
return False;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user