+Thu Nov 30 01:14:21 2000 Andrew Cagney <cagney@b1.cygnus.com>
+
+ * Makefile.in (varobj.o): Delete special compile rule
+ suppressing -Werror flag.
+ * varobj.c (varobj_create): Initialize ``old_fi''.
+ (varobj_update): Initialize ``templist''.
+
+ * kod-cisco.c (cisco_kod_request): Simplify allocation of
+ ``sync_ids'' eliminating uninitialized variable.
+
2000-11-28 Mark Salter <msalter@redhat.com>
* MAINTAINERS: Add Mark Salter to Write After Approval list.
int done = 0, i;
int fail = 0;
- char **sync_ids;
+ char **sync_ids = NULL;
int sync_len = 0;
int sync_next = 0;
char *prev_id = NULL;
buffer[off + 8] = '\0';
off += 9;
- if (sync_len == 0)
- sync_ids = (char **) xmalloc (count * sizeof (char *));
- else
- sync_ids = (char **) xrealloc (sync_ids,
- (sync_len + count) * sizeof (char *));
sync_len += count;
+ sync_ids = (char **) xrealloc (sync_ids, sync_len * sizeof (char *));
for (i = 0; i < count; ++i)
{
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;
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;