summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPauli Nieminen <suokkos@gmail.com>2009-06-23 16:43:00 +0200
committerJerome Glisse <jglisse@redhat.com>2009-06-23 16:43:00 +0200
commit4f1e141c116a1c230db7adfd1b70f09d484aa19b (patch)
treea4cec861b6e1dc3ce795d03ad2e5ed8aa97f6655 /src
parent70e72070fce6aa1e0918dcc62c1949465cee69f7 (diff)
Fix crash when debug output is enabled and sarea is notset in r200Clear
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/r200/r200_ioctl.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/r200/r200_ioctl.c b/src/mesa/drivers/dri/r200/r200_ioctl.c
index 0b3398a730..6560efdca3 100644
--- a/src/mesa/drivers/dri/r200/r200_ioctl.c
+++ b/src/mesa/drivers/dri/r200/r200_ioctl.c
@@ -196,7 +196,10 @@ static void r200Clear( GLcontext *ctx, GLbitfield mask )
GLuint orig_mask = mask;
if ( R200_DEBUG & DEBUG_IOCTL ) {
- fprintf( stderr, "r200Clear %x %d\n", mask, rmesa->radeon.sarea->pfCurrentPage);
+ if (rmesa->radeon.sarea)
+ fprintf( stderr, "r200Clear %x %d\n", mask, rmesa->radeon.sarea->pfCurrentPage);
+ else
+ fprintf( stderr, "r200Clear %x radeon->sarea is NULL\n", mask);
}
{