1 $NetBSD: patch-aa,v 1.1 2010/05/19 21:00:02 drochner Exp $
3 --- src/aomodule.c.orig 2003-07-24 06:52:59.000000000 +0000
5 @@ -64,6 +64,7 @@ parse_args(PyObject *args, PyObject *kwa
6 assert(overwrite != NULL);
8 /* Set the default values */
9 + memset(format, 0, sizeof(*format));
13 @@ -143,6 +144,7 @@ py_ao_new(PyObject *self, PyObject *args
15 retobj = (ao_Object *) PyObject_NEW(ao_Object, &ao_Type);
17 + retobj->driver_id = driver_id;
18 return (PyObject *) retobj;
21 @@ -150,7 +152,7 @@ static void
22 py_ao_dealloc(ao_Object *self)
30 @@ -184,7 +186,7 @@ py_ao_driver_info(PyObject *self, PyObje
33 ao_Object *ao_self = (ao_Object *) self;
34 - info = ao_driver_info(ao_self->dev->driver_id);
35 + info = ao_driver_info(ao_self->driver_id);