소스 검색

sl: don't remove the lump added in the 'after' list of delete lump

- they are destroyed together, making the operation useless
Daniel-Constantin Mierla 10 년 전
부모
커밋
338b00c0f2
1개의 변경된 파일2개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 3
      modules/sl/sl.c

+ 2 - 3
modules/sl/sl.c

@@ -437,9 +437,8 @@ restore:
 	if(reason!=NULL) {
 		if(ldel!=NULL) {
 			remove_lump(msg, ldel);
-		}
-		if(ladd!=NULL) {
-			remove_lump(msg, ladd);
+			/* ladd is liked in the 'after' list inside ldel,
+			 * destroyed together, no need for its own remove operation */
 		}
 	}
 	if(code!=NULL) {