Changeset 37837 for trunk/psModules
- Timestamp:
- Jan 12, 2015, 12:57:36 PM (12 years ago)
- Location:
- trunk/psModules/src
- Files:
-
- 2 edited
-
detrend/pmDetrendDB.c (modified) (1 diff)
-
objects/pmSourceIO_CMF.c.in (modified) (1 prop)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/detrend/pmDetrendDB.c
r36834 r37837 356 356 psTrace("psModules.detrend", 5, "detrend file: %s\n", result); 357 357 358 char *is_nebulous = strstr(result,"neb://"); 359 if (is_nebulous) { // This file matches the nebulous string 360 psString truncated = psStringCopy(is_nebulous + 6); 361 // printf("A: %s %s\n",result,truncated); 362 psMetadata *recipe = psMetadataLookupMetadata(NULL, config->recipes,"PPIMAGE"); 363 psMetadata *detloc = psMetadataLookupMetadata(NULL, recipe, "DETREND.LOCATIONS"); 364 if (detloc) { // This exists, so we have the information. 365 psString location = psMetadataLookupStr(NULL, detloc,classID); 366 // printf("B: %s %s\n", classID,location); 367 if (location) { // Found a location 368 psString ext_key = strstr(truncated,"/"); // Find the first '/' 369 // printf("C: %s\n", ext_key); 370 if (ext_key) { 371 psString copyBecauseReasons = psStringCopy(ext_key); 372 psStringPrepend(©BecauseReasons,"neb://%s",location); 373 // printf("D: %s\n",copyBecauseReasons); 374 psFree(result); // Yes, because we are going to reallocate a clean copy of cBR to this object. 375 result = psStringCopy(copyBecauseReasons); 376 // psFree(ext_key); // No, because this is just a pointer into some other memory space. 377 psTrace("psModules.detrend", 5, "altered detrend file: %s\n", result); 378 psFree(copyBecauseReasons); // Yes, because we copied this to the output object, and so we don't need this any more. 379 } 380 // psFree(location); // Don't free this because the string lookup isn't a copy, so it deletes it from the config structure entirely. 381 } 382 } 383 // psFree(is_nebulous); // No, because this is just a pointer into some other memory space. 384 psFree(truncated); 385 } 386 387 358 388 psFree (answer); 359 389 psFree (pipe); -
trunk/psModules/src/objects/pmSourceIO_CMF.c.in
- Property svn:mergeinfo changed
/branches/eam_branches/ipp-pv3-20140717-merge/psModules/src/objects/pmSourceIO_CMF.c.in (added) merged: 37828
- Property svn:mergeinfo changed
Note:
See TracChangeset
for help on using the changeset viewer.
