IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 28, 2009, 2:07:12 PM (17 years ago)
Author:
Paul Price
Message:

Adding protection for revert.

File:
1 edited

Legend:

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

    r24866 r24933  
    931931    PXOPT_COPY_S16(config->args, where, "-fault", "stackSumSkyfile.fault", "==");
    932932
     933    if (!psListLength(where->list) && !psMetadataLookupBool(NULL, config->args, "-all")) {
     934        psFree(where);
     935        psError(PXTOOLS_ERR_DATA, false, "search parameters are required");
     936        return false;
     937    }
     938
    933939    if (!psDBTransaction(config->dbh)) {
    934940        psError(PS_ERR_UNKNOWN, false, "database error");
Note: See TracChangeset for help on using the changeset viewer.