~ubuntu-branches/ubuntu/edgy/ncbi-tools6/edgy

« back to all changes in this revision

Viewing changes to algo/blast/core/pattern.c

  • Committer: Bazaar Package Importer
  • Author(s): Barry deFreese
  • Date: 2006-07-19 23:28:07 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20060719232807-et3cdmcjgmnyleyx
Tags: 6.1.20060507-3ubuntu1
Re-merge with Debian

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id: pattern.c,v 1.18 2005/11/16 14:27:04 madden Exp $
 
1
/* $Id: pattern.c,v 1.19 2006/05/03 18:11:09 madden Exp $
2
2
 * ===========================================================================
3
3
 *
4
4
 *                            PUBLIC DOMAIN NOTICE
56
56
 
57
57
#ifndef SKIP_DOXYGEN_PROCESSING
58
58
static char const rcsid[] = 
59
 
    "$Id: pattern.c,v 1.18 2005/11/16 14:27:04 madden Exp $";
 
59
    "$Id: pattern.c,v 1.19 2006/05/03 18:11:09 madden Exp $";
60
60
#endif /* SKIP_DOXYGEN_PROCESSING */
61
61
 
62
62
#include <algo/blast/core/pattern.h>
491
491
        return NULL;
492
492
    pattern_info->allocated_size = kMinPhiLookupSize;
493
493
    if ((pattern_info->occurrences = 
494
 
         (SPHIPatternInfo*) malloc(kMinPhiLookupSize*sizeof(SPHIPatternInfo)))
 
494
         (SPHIPatternInfo*) calloc(kMinPhiLookupSize, sizeof(SPHIPatternInfo)))
495
495
        == NULL)
496
496
        return NULL;
497
497
    return pattern_info;