]> git.saurik.com Git - ldid.git/commitdiff
Avoid sharing linkedit_data_commands in FAT files.
authorJay Freeman (saurik) <saurik@saurik.com>
Fri, 21 Aug 2015 12:57:05 +0000 (05:57 -0700)
committerJay Freeman (saurik) <saurik@saurik.com>
Fri, 21 Aug 2015 12:57:05 +0000 (05:57 -0700)
ldid.cpp

index 384b27cdeadc962823af66e2e156500c435048e2..e1fbda9b5412e3b9d077bfb98f674e5f0cb9da5a 100644 (file)
--- a/ldid.cpp
+++ b/ldid.cpp
@@ -1094,9 +1094,9 @@ int main(int argc, const char *argv[]) {
             printf("path%zu='%s'\n", filei, file.c_str());
 
         FatHeader fat_header(Map(temp == NULL ? path : temp, !(flag_R || flag_T || flag_s || flag_S || flag_O || flag_D)));
-        struct linkedit_data_command *signature(NULL);
 
         _foreach (mach_header, fat_header.GetMachHeaders()) {
+            struct linkedit_data_command *signature(NULL);
             struct encryption_info_command *encryption(NULL);
 
             if (flag_A) {