소스 검색

Keep it consistent

Piotr Czajkowski 5 년 전
부모
커밋
54dc5b99ca
1개의 변경된 파일1개의 추가작업 그리고 5개의 파일을 삭제
  1. 1 5
      zip.c

+ 1 - 5
zip.c

@@ -28,11 +28,7 @@ int rewriteZIP(struct archive *archiveIn, struct archive *archiveOut) {
 
 		if (strcmp(commentsFile, path) == 0){
 			XMLBuff *comments = XMLBuffNew();
-			if (comments == NULL) {
-				puts("Couldn't obtain comments!");
-				return 0;
-			}
-			
+			Stopif(comments == NULL, return 0, "Couldn't obtain comments!\n");
 			*comments = (XMLBuff){.data=buf, .size=size, .name=path};
 
 			if (!processComments(archiveOut, comments)) return 0;