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