Fix for un-initialized variable error

This commit is contained in:
Doug Russell committed 2013-01-28 11:53:47 -08:00
1 parent 1325d3fe40
commit adebca38ba
1 file changed
+2 -1
+2 -1
View File
@@ -51,6 +51,7 @@
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
FILE *fp = NULL, *cmdFP = NULL;
char *oldDestinationString = NULL;
SULog(@"Extracting %@ using '%@'",archivePath,command);
@@ -67,7 +68,7 @@
fp = fopen([archivePath fileSystemRepresentation], "r");
if (!fp) goto reportError;
char *oldDestinationString = getenv("DESTINATION");
oldDestinationString = getenv("DESTINATION");
setenv("DESTINATION", [[archivePath stringByDeletingLastPathComponent] fileSystemRepresentation], 1);
cmdFP = popen([command fileSystemRepresentation], "w");
size_t written;