pygobject r953 - in trunk: . glib
- From: paulp svn gnome org
- To: svn-commits-list gnome org
- Subject: pygobject r953 - in trunk: . glib
- Date: Wed, 27 Aug 2008 21:40:13 +0000 (UTC)
Author: paulp
Date: Wed Aug 27 21:40:12 2008
New Revision: 953
URL: http://svn.gnome.org/viewvc/pygobject?rev=953&view=rev
Log:
2008-08-28 Paul Pogonyshev <pogonyshev gmx net>
Bug 549351 â an unitialized variable in PyGLib
* glib/pygmainloop.c (pyg_main_loop_init): Initialize
`is_running'.
Modified:
trunk/ChangeLog
trunk/glib/pygmainloop.c
Modified: trunk/glib/pygmainloop.c
==============================================================================
--- trunk/glib/pygmainloop.c (original)
+++ trunk/glib/pygmainloop.c Wed Aug 27 21:40:12 2008
@@ -232,10 +232,9 @@
static int
pyg_main_loop_init(PyGMainLoop *self, PyObject *args, PyObject *kwargs)
{
-
static char *kwlist[] = { "context", "is_running", NULL };
PyObject *py_context = Py_None;
- int is_running;
+ int is_running = 0;
GMainContext *context;
if (!PyArg_ParseTupleAndKeywords(args, kwargs,
@@ -246,7 +245,7 @@
if (!PyObject_TypeCheck(py_context, &PyGMainContext_Type) &&
py_context != Py_None) {
PyErr_SetString(PyExc_TypeError,
- "context must be a glib.GMainContext or None");
+ "context must be a glib.MainContext or None");
return -1;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]