2009-12-09 Phil Muldoon <pmuldoon@redhat.com>

* python/py-type.c (typy_range): Initialize variables to zero.
This commit is contained in:
Phil Muldoon 2009-12-09 07:49:31 +00:00
parent 3a6c31f95c
commit 8d099ae953
1 changed files with 2 additions and 1 deletions

View File

@ -282,7 +282,8 @@ typy_range (PyObject *self, PyObject *args)
struct type *type = ((type_object *) self)->type;
PyObject *result;
PyObject *low_bound = NULL, *high_bound = NULL;
LONGEST low, high;
/* Initialize these to appease GCC warnings. */
LONGEST low = 0, high = 0;
if (TYPE_CODE (type) != TYPE_CODE_ARRAY
&& TYPE_CODE (type) != TYPE_CODE_STRING