Browse Source

Keep it consistent

Piotr Czajkowski 5 years ago
parent
commit
54dc5b99ca
1 changed files with 1 additions and 5 deletions
  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;