* python/py-value.c (valpy_call): Initialize ftype to avoid compiler
authorDoug Evans <dje@google.com>
Fri, 7 Oct 2011 22:02:42 +0000 (22:02 +0000)
committerDoug Evans <dje@google.com>
Fri, 7 Oct 2011 22:02:42 +0000 (22:02 +0000)
warning.

gdb/ChangeLog
gdb/python/py-value.c

index 1a7a012f3fe116bbc04b54686024cde111d3e3bd..11c8e12fb0b030821db0fd641cf9e58ca6ac5b5c 100644 (file)
@@ -1,3 +1,8 @@
+2011-10-07  Doug Evans  <dje@google.com>
+
+       * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
+       warning.
+
 2011-10-07  Pedro Alves  <pedro@codesourcery.com>
 
        * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
index 98835b5d885d00719fca970bb37e296d04c3e4c2..d22fb066d28dd4ea79796080ed14032629218f5a 100644 (file)
@@ -515,7 +515,7 @@ valpy_call (PyObject *self, PyObject *args, PyObject *keywords)
   volatile struct gdb_exception except;
   struct value *function = ((value_object *) self)->value;
   struct value **vargs = NULL;
-  struct type *ftype;
+  struct type *ftype = NULL;
 
   TRY_CATCH (except, RETURN_MASK_ALL)
     {