Explorar el Código

Keep it consistent

Piotr Czajkowski hace 5 años
padre
commit
54dc5b99ca
Se han modificado 1 ficheros con 1 adiciones y 5 borrados
  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;