IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 30582


Ignore:
Timestamp:
Feb 11, 2011, 3:12:33 PM (15 years ago)
Author:
watersc1
Message:

String substitution was corrupting the config data structure. I've stopped doing that now.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/src/regtool.c

    r30352 r30582  
    211211  // convert regular class_id format to summitImfile.class_id format
    212212  rep = psStringCopy(class_id);
    213   psFree(class_id);
     213
    214214  class_id = rep;
    215215 
     
    320320  psStringSubstitute(&query,dateobs_end,"@DATEOBS_END@");
    321321
    322   // fprintf(stderr,"%s",query);
     322  fprintf(stderr,"%s",query);
    323323
    324324  if (!p_psDBRunQuery(config->dbh, query)) {
     
    345345  }
    346346
    347   // fprintf (stderr, "found %ld rows\n", output->n);
     347  fprintf (stderr, "found %ld rows\n", output->n);
    348348  if (!psArrayLength(output)) {
    349349    psTrace("regtool", PS_LOG_INFO, "no rows found");
     
    370370    char *tmp_id = psMetadataLookupStr(&status,row,"summit_class_id");
    371371    if (!status) {
    372       //      fprintf (stderr, "incomplete on %s\n", psMetadataLookupStr(NULL,row,"exp_name"));
     372            fprintf (stderr, "incomplete on %s\n", psMetadataLookupStr(NULL,row,"exp_name"));
    373373        continue;
    374374    }
     
    440440        already_burned = false;
    441441
    442         //      fprintf (stderr, "missing uri: %s %s\n", psMetadataLookupStr(NULL,row,"exp_name"), this_class_id);
     442        fprintf (stderr, "missing uri: %s %s\n", psMetadataLookupStr(NULL,row,"exp_name"), this_class_id);
    443443
    444444        // Save this round for next round.
     
    19031903  psFree(query);
    19041904  query = rep;
    1905   psStringSubstitute(&class_id,"ota","XY");
    19061905  psStringSubstitute(&query,class_id,"@CLASS_ID@");
    1907    
     1906  psStringSubstitute(&query,"ota","XY");
     1907 
    19081908  if (!date) {
    19091909    if (!dateobs_begin || !dateobs_end) {
Note: See TracChangeset for help on using the changeset viewer.