Procházet zdrojové kódy

Keep it consistent

Piotr Czajkowski před 5 roky
rodič
revize
54dc5b99ca
1 změnil soubory, kde provedl 1 přidání a 5 odebrání
  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;