Piotr Czajkowski 5 rokov pred
rodič
commit
54dc5b99ca
1 zmenil súbory, kde vykonal 1 pridanie a 5 odobranie
  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;