[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#482146: sleuthkit: license issues in older versions



On Fri, May 23, 2008 at 00:59:26 +0300, Petri Latvala wrote:

> > -  char *buf = (char *) mymalloc (sizeof (char) * (string_min + 1));
> > +  /* taken from v2.10 */
> > +  char *buf = (char *) malloc (sizeof (char) * (string_min + 1));
> > +  if (malloc == NULL) {
> > +      fprintf(stderr, "Error allocating memory\n");
> > +      return;
> > +  }
> 
> 
> I think you mean
> 
> 
> if (buf == NULL) {

Right, thanks.

Martin


Reply to: