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));
void *intelAllocateAGP( intelContextPtr intel, GLsizei size )
{
- int region_offset;
+ int region_offset = 0;
drmI830MemAlloc alloc;
int ret;
/* 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;