~ubuntu-branches/ubuntu/utopic/libxpm/utopic

« back to all changes in this revision

Viewing changes to src/hashtab.c

  • Committer: Bazaar Package Importer
  • Author(s): Julien Cristau
  • Date: 2007-08-25 10:50:50 UTC
  • mfrom: (1.2.1 upstream) (6 gutsy)
  • mto: This revision was merged to the branch mainline in revision 7.
  • Revision ID: james.westby@ubuntu.com-20070825105050-j44hz8lfnvdw8a31
* New upstream release.
* Add the upstream URL to debian/copyright.
* Use binary:Version instead of the deprecated Source-Version.
* Add myself to uploaders, and remove Branden with his permission.

Show diffs side-by-side

added added

removed removed

Lines of Context:
209
209
    table->size = INITIAL_HASH_SIZE;
210
210
    table->limit = table->size / 3;
211
211
    table->used = 0;
 
212
    table->atomTable = NULL;
212
213
    if (table->size >= UINT_MAX / sizeof(*atomTable))
213
214
        return (XpmNoMemory);
214
215
    atomTable = (xpmHashAtom *) XpmMalloc(table->size * sizeof(*atomTable));