IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 26, 2008, 8:42:17 AM (17 years ago)
Author:
Paul Price
Message:

Setting stage_id, cam_id to avoid compiler warning "may be used uninitialized in this function"

File:
1 edited

Legend:

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

    r20841 r20847  
    345345    PXOPT_LOOKUP_BOOL(simple, config->args, "-simple", false);
    346346
    347     psS64 stage_id, cam_id;
     347    psS64 stage_id = 0, cam_id = 0;
    348348
    349349    if (!magicDSGetIDs(config, stage, magic_id, &stage_id, &cam_id)) {
     
    539539        *cam_id = 0;
    540540        return true;
    541     } 
    542    
     541    }
     542
    543543    int stageNum;
    544544    if (!strcmp(stage, "raw")) {
     
    578578    }
    579579    if (psArrayLength(output) > 1) {
    580         psError(PS_ERR_UNKNOWN, true, "unexpected number of rows found %ld for magic_id %ld", 
     580        psError(PS_ERR_UNKNOWN, true, "unexpected number of rows found %ld for magic_id %ld",
    581581            psArrayLength(output), magic_id);
    582582        return false;
Note: See TracChangeset for help on using the changeset viewer.