IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 8, 2006, 1:54:57 AM (20 years ago)
Author:
eugene
Message:

moved CHIP_SELECTIONS to recipe, fixed leak

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/psphotArguments.c

    r10492 r10554  
    8989    }
    9090
    91     // drop the local view on the options (saved in config->arguments)
     91    // chip selection is used to limit chips to be processed
     92    if ((N = psArgumentGet (argc, argv, "-chip"))) {
     93        psArgumentRemove (N, &argc, argv);
     94        psMetadataAddStr (options, PS_LIST_TAIL, "CHIP_SELECTIONS", PS_DATA_STRING, "", argv[N]);
     95        psArgumentRemove (N, &argc, argv);
     96    }
     97
     98    // drop the local view on the options (saved in config->arguments:PSPHOT_RECIPE)
    9299    psFree (options);
    93100
     
    97104        psError(PSPHOT_ERR_ARGUMENTS, false, "pmConfigFileSetsMD failed to parse arguments");
    98105        return NULL;
    99     }
    100 
    101     // chip selection is used to limit chips to be processed
    102     if ((N = psArgumentGet (argc, argv, "-chip"))) {
    103         psArgumentRemove (N, &argc, argv);
    104         psMetadataAddStr (config->arguments, PS_LIST_TAIL, "CHIP_SELECTIONS", PS_DATA_STRING, "", psStringCopy(argv[N]));
    105         psArgumentRemove (N, &argc, argv);
    106106    }
    107107
Note: See TracChangeset for help on using the changeset viewer.