IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 28, 2011, 8:26:06 AM (15 years ago)
Author:
bills
Message:

fix error which occurs when no magicRuns that match the selection criteria are pending

File:
1 edited

Legend:

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

    r30388 r30402  
    890890        return false;
    891891    }
    892     psArray *output = NULL;
    893     if (psArrayLength(magicRuns)) {
    894         output = psArrayAllocEmpty(100);
    895 
     892
     893    if (!psArrayLength(magicRuns)) {
     894        // no pending magicRuns nothing to do
     895        psTrace("magictool", PS_LOG_INFO, "no rows found");
     896        return true;
     897    }
     898    psArray *output = psArrayAllocEmpty(100);
     899
     900    {
    896901        query = pxDataGet("magictool_toprocess_tree.sql");
    897902        if (!query) {
Note: See TracChangeset for help on using the changeset viewer.