IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 17740


Ignore:
Timestamp:
May 19, 2008, 11:29:28 AM (18 years ago)
Author:
jhoblitt
Message:

change parseFiles() to return an error when no rows are found in the parsed string

File:
1 edited

Legend:

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

    r17738 r17740  
    473473    psFree(doc);
    474474
    475     return pzPendingImfiles;;
     475    if (!psArrayLength(pzPendingImfiles)) {
     476        psError(PS_ERR_UNKNOWN, false, "string contained no valid rows");
     477        psFree(pzPendingImfiles);
     478        return false;
     479    }
     480
     481    return pzPendingImfiles;
    476482}
Note: See TracChangeset for help on using the changeset viewer.