Reorder variable initialization to satisfy stricter compiler.

This commit is contained in:
Marc Liyanage committed 2013-03-12 22:57:39 -07:00
1 parent 9c912bf8ba
commit 3fddd63329
1 file changed
+2 -1
+2 -1
View File
@@ -60,6 +60,8 @@
#else
NSNumber *fs = [[[NSFileManager defaultManager] attributesOfItemAtPath:archivePath error:nil] objectForKey:NSFileSize];
#endif
char *oldDestinationString = getenv("DESTINATION");
if (fs == nil) goto reportError;
// Thank you, Allan Odgaard!
@@ -67,7 +69,6 @@
fp = fopen([archivePath fileSystemRepresentation], "r");
if (!fp) goto reportError;
char *oldDestinationString = getenv("DESTINATION");
setenv("DESTINATION", [[archivePath stringByDeletingLastPathComponent] fileSystemRepresentation], 1);
cmdFP = popen([command fileSystemRepresentation], "w");
size_t written;