IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 18251


Ignore:
Timestamp:
Jun 20, 2008, 7:27:23 PM (18 years ago)
Author:
eugene
Message:

fix possible segfault

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/cmd.data/histogram.c

    r15514 r18251  
    3434  REALLOCATE (yvec[0].elements, float, yvec[0].Nelements);
    3535  bzero (yvec[0].elements, sizeof(float)*yvec[0].Nelements);
     36  if (Nbins < 1) {
     37      return (TRUE);
     38  }
    3639
    3740  V = xvec[0].elements;
Note: See TracChangeset for help on using the changeset viewer.