IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 41415


Ignore:
Timestamp:
Sep 17, 2020, 12:20:26 PM (6 years ago)
Author:
eugene
Message:

avoid infinite loop if input and output metadata are the same for psMetadataCopy

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/types/psMetadata.c

    r39926 r41415  
    439439{
    440440    PS_ASSERT_METADATA_NON_NULL(in, NULL);
     441
     442    // if calling function passes the same psMetadata for in and out, we are done
     443    // otherwise, we get stuck in an infinite loop
     444    if (out == in) return out;
    441445
    442446    bool errorOccurred = false;
Note: See TracChangeset for help on using the changeset viewer.