IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 20819


Ignore:
Timestamp:
Nov 24, 2008, 10:43:38 AM (17 years ago)
Author:
eugene
Message:

handle errors in dbCheckStack

Location:
trunk/Ohana/src/opihi/dvo
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/dvo/avextract.c

    r20575 r20819  
    6565  // parse stack elements into fields and scalars as needed
    6666  Nreturn = Nfields;
    67   dbCheckStack (stack, Nstack, DVO_TABLE_AVERAGE, &fields, &Nfields);
     67  if (!dbCheckStack (stack, Nstack, DVO_TABLE_AVERAGE, &fields, &Nfields)) goto escape;
    6868  // XXX handle errors
    6969
  • trunk/Ohana/src/opihi/dvo/mextract.c

    r20535 r20819  
    7070  // parse stack elements into fields and scalars as needed
    7171  Nreturn = Nfields;
    72   dbCheckStack (stack, Nstack, DVO_TABLE_MEASURE, &fields, &Nfields);
     72  if (!dbCheckStack (stack, Nstack, DVO_TABLE_MEASURE, &fields, &Nfields)) goto escape;
    7373  // XXX handle errors
    7474
  • trunk/Ohana/src/opihi/dvo/mmextract.c

    r19579 r20819  
    120120  Nreturn = 2*Nfields; // we are returning fieldi_1, fieldi_2 for the selected fields
    121121
    122   dbCheckStack (stack1, Nstack1, DVO_TABLE_MEASURE, &fields, &Nfields);
    123   dbCheckStack (stack2, Nstack2, DVO_TABLE_MEASURE, &fields, &Nfields);
     122  if (!dbCheckStack (stack1, Nstack1, DVO_TABLE_MEASURE, &fields, &Nfields)) goto escape;
     123  if (!dbCheckStack (stack2, Nstack2, DVO_TABLE_MEASURE, &fields, &Nfields)) goto escape;
    124124  // XXX handle errors
    125125
Note: See TracChangeset for help on using the changeset viewer.