From: Mark Kettenis Date: Tue, 10 Jan 2006 22:14:43 +0000 (+0000) Subject: * linespec.c (decode_objc): Make i1 and i2 unsigned. X-Git-Tag: gdb-csl-20060226-branchpoint~349 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=15550d6bec38f2381fdf52210d2acfda840e0500;p=platform%2Fupstream%2Fbinutils.git * linespec.c (decode_objc): Make i1 and i2 unsigned. (find_method): Set values.sals to NULL. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index c2b55b0..3875a41 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2006-01-10 Mark Kettenis + + * linespec.c (decode_objc): Make i1 and i2 unsigned. + (find_method): Set values.sals to NULL. + 2006-01-09 Mark Kettenis * amd64obsd-nat.c (amd64obsd_supply_pcb): Use 'gdb_byte *' instead diff --git a/gdb/linespec.c b/gdb/linespec.c index 77758fd..fad5e31 100644 --- a/gdb/linespec.c +++ b/gdb/linespec.c @@ -1080,8 +1080,8 @@ decode_objc (char **argptr, int funfirstline, struct symtab *file_symtab, struct symbol *sym = NULL; char *copy = NULL; struct block *block = NULL; - int i1 = 0; - int i2 = 0; + unsigned i1 = 0; + unsigned i2 = 0; values.sals = NULL; values.nelts = 0; @@ -1427,6 +1427,7 @@ find_method (int funfirstline, char ***canonical, char *saved_arg, } else { + values.sals = NULL; values.nelts = 0; } return values;