IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 9903


Ignore:
Timestamp:
Nov 7, 2006, 4:09:31 PM (20 years ago)
Author:
Paul Price
Message:

Prepend the global path to the file rule.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/camera/pmFPAfileDefine.c

    r9579 r9903  
    536536    PS_ASSERT_INT_POSITIVE(strlen(filename), false);
    537537
    538     if (*found)
    539         return NULL;
     538    if (*found) {
     539        return NULL;
     540    }
    540541
    541542    // a camera config is needed (as source of file rule)
     
    581582    }
    582583
     584    // Prepend the global path to the file rule
     585    if (config->workdir) {
     586        psStringPrepend(&file->filerule, "%s/", config->workdir);
     587    }
     588
    583589    if (found) {
    584590        *found = true;
    585591    }
    586     psFree (fpa);
     592    psFree (fpa);                       // Drop reference
     593
    587594    return file;
    588595}
Note: See TracChangeset for help on using the changeset viewer.