mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-06 20:50:31 +01:00
fix some valgrind complaints
This commit is contained in:
parent
5a5b4436cb
commit
e57d5c4742
2 changed files with 3 additions and 3 deletions
|
|
@ -45,7 +45,7 @@
|
|||
static int intelEmitIrqLocked( intelContextPtr intel )
|
||||
{
|
||||
drmI830IrqEmit ie;
|
||||
int ret, seq;
|
||||
int ret, seq = 0;
|
||||
|
||||
assert(((*(int *)intel->driHwLock) & ~DRM_LOCK_CONT) ==
|
||||
(DRM_LOCK_HELD|intel->hHWContext));
|
||||
|
|
@ -398,7 +398,7 @@ void intelClear(GLcontext *ctx, GLbitfield mask, GLboolean all,
|
|||
|
||||
void *intelAllocateAGP( intelContextPtr intel, GLsizei size )
|
||||
{
|
||||
int region_offset;
|
||||
int region_offset = 0;
|
||||
drmI830MemAlloc alloc;
|
||||
int ret;
|
||||
|
||||
|
|
|
|||
|
|
@ -81,7 +81,7 @@ static GLboolean intelInitDriver(__DRIscreenPrivate *sPriv)
|
|||
|
||||
|
||||
/* Allocate the private area */
|
||||
intelScreen = (intelScreenPrivate *)MALLOC(sizeof(intelScreenPrivate));
|
||||
intelScreen = (intelScreenPrivate *)CALLOC(sizeof(intelScreenPrivate));
|
||||
if (!intelScreen) {
|
||||
fprintf(stderr,"\nERROR! Allocating private area failed\n");
|
||||
return GL_FALSE;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue