~ubuntu-branches/ubuntu/quantal/mesa/quantal

« back to all changes in this revision

Viewing changes to src/mesa/drivers/dri/common/dri_util.c

  • Committer: Package Import Robot
  • Author(s): Timo Aaltonen
  • Date: 2012-10-03 18:23:24 UTC
  • mfrom: (1.7.10)
  • Revision ID: package-import@ubuntu.com-20121003182324-1pafp7bsb24d4cnk
Tags: 9.0~git20121004.b2048c5e-0ubuntu1
* Merge from unreleased debian git.
  - new snapshot leading to final 9.0.
* Drop patch 118, obsolete.

Show diffs side-by-side

added added

removed removed

Lines of Context:
272
272
        return NULL;
273
273
    }
274
274
 
275
 
    context = malloc(sizeof *context);
 
275
    context = calloc(1, sizeof *context);
276
276
    if (!context) {
277
277
        *error = __DRI_CTX_ERROR_NO_MEMORY;
278
278
        return NULL;