diff options
author | Andrew Cagney <cagney@redhat.com> | 2000-11-29 14:41:34 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2000-11-29 14:41:34 +0000 |
commit | 2c67cb8b7a617d1a9ae00e29fc2983f0a3d3b68c (patch) | |
tree | b4f798bd493d363f1767b5e4e8eed514f227f24d /gdb/varobj.c | |
parent | be3ccd9c2b879034525ceceed75d60fb86648551 (diff) | |
download | gdb-2c67cb8b7a617d1a9ae00e29fc2983f0a3d3b68c.zip gdb-2c67cb8b7a617d1a9ae00e29fc2983f0a3d3b68c.tar.gz gdb-2c67cb8b7a617d1a9ae00e29fc2983f0a3d3b68c.tar.bz2 |
Fix -Wuninitialized warnings.
Diffstat (limited to 'gdb/varobj.c')
-rw-r--r-- | gdb/varobj.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/varobj.c b/gdb/varobj.c index 799558b..6528bcb 100644 --- a/gdb/varobj.c +++ b/gdb/varobj.c @@ -411,7 +411,8 @@ varobj_create (char *objname, enum varobj_type type) { struct varobj *var; - struct frame_info *fi, *old_fi; + struct frame_info *fi; + struct frame_info *old_fi = NULL; struct block *block; struct cleanup *old_chain; @@ -883,7 +884,7 @@ varobj_update (struct varobj *var, struct varobj ***changelist) int error2; struct varobj *v; struct varobj **cv; - struct varobj **templist; + struct varobj **templist = NULL; value_ptr new; struct vstack *stack = NULL; struct vstack *result = NULL; |