Huw Davies : wldap32: Remove unnecessary test of sortkey.
Alexandre Julliard
julliard at winehq.org
Fri Apr 16 15:56:22 CDT 2021
Module: wine
Branch: master
Commit: 4bdf8f928ac2b85de76f74420dcc8059d25b9422
URL: https://source.winehq.org/git/wine.git/?a=commit;h=4bdf8f928ac2b85de76f74420dcc8059d25b9422
Author: Huw Davies <huw at codeweavers.com>
Date: Fri Apr 16 11:43:42 2021 +0100
wldap32: Remove unnecessary test of sortkey.
Signed-off-by: Huw Davies <huw at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/wldap32/control.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/wldap32/control.c b/dlls/wldap32/control.c
index 42098fc814a..b012648797c 100644
--- a/dlls/wldap32/control.c
+++ b/dlls/wldap32/control.c
@@ -152,7 +152,7 @@ ULONG CDECL ldap_create_sort_controlW( WLDAP32_LDAP *ld, LDAPSortKeyW **sortkey,
if (!ld || !sortkey || !control) return WLDAP32_LDAP_PARAM_ERROR;
- if (sortkey && !(sortkeyU = sortkeyarrayWtoU( sortkey ))) return WLDAP32_LDAP_NO_MEMORY;
+ if (!(sortkeyU = sortkeyarrayWtoU( sortkey ))) return WLDAP32_LDAP_NO_MEMORY;
ret = map_error( ldap_funcs->ldap_create_sort_control( ld->ld, sortkeyU, critical, &controlU ) );
if (ret == WLDAP32_LDAP_SUCCESS)
More information about the wine-cvs
mailing list