1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-27 22:50:26 +03:00

pam_winbind: Remove a nested if-statement. Bo, please check!

This commit is contained in:
Volker Lendecke 2010-02-06 12:56:19 +01:00
parent 8cb6f7ec1b
commit 65710dae84

View File

@ -1199,10 +1199,8 @@ static bool winbind_name_list_to_sid_string_list(struct pwb_context *ctx,
* It is malformated parameter here, overwrite the last ','.
*/
len = strlen(sid_list_buffer);
if (len) {
if (sid_list_buffer[len - 1] == ',') {
sid_list_buffer[len - 1] = '\0';
}
if ((len != 0) && (sid_list_buffer[len - 1] == ',')) {
sid_list_buffer[len - 1] = '\0';
}
}