ports/converters/mpack/patches/patch-encode_c

19 lines
541 B
Text

--- encode.c.orig Mon Jul 21 21:35:31 2003
+++ encode.c Tue Dec 11 10:01:54 2012
@@ -24,6 +24,7 @@
*/
#include <stdio.h>
#include <string.h>
+#include <stdlib.h>
extern char *magic_look(FILE *infile);
extern char *os_genid(void);
@@ -43,7 +44,7 @@ int encode(FILE *infile, FILE *applefile, char *fname,
char *type;
FILE *outfile;
char *cleanfname, *p;
- char *digest, *appledigest;
+ char *digest, *appledigest = NULL;
long filesize, l, written;
int thispart, numparts = 1;
int wrotefiletype = 0;