فهرست منبع

Bug 622903 - fix coverity Defect Type: Code maintainability issues

https://bugzilla.redhat.com/show_bug.cgi?id=622903

Comment:
The str assignment on line 1240 can be removed because the value
is not needed or will be overwritten.
Noriko Hosoi 15 سال پیش
والد
کامیت
5543a6e820
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      ldap/servers/plugins/acl/aclutil.c

+ 1 - 1
ldap/servers/plugins/acl/aclutil.c

@@ -1237,7 +1237,7 @@ acl_replace_str(char * s, char *substr, char* replace_with_str) {
 		char *working_s, *suffix, *prefix, *patched;
 		int replace_with_len, substr_len, prefix_len, suffix_len;
 
-		if ( (str = strstr(s, substr)) == NULL) {
+		if (strstr(s, substr) == NULL) {
 			return(slapi_ch_strdup(s));
 		} else {