diff options
author | Mark Kettenis <kettenis@gnu.org> | 2006-01-10 22:14:43 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2006-01-10 22:14:43 +0000 |
commit | 15550d6bec38f2381fdf52210d2acfda840e0500 (patch) | |
tree | 595dcb92c554a44d58aec1567f17043baf845eb7 /gdb/linespec.c | |
parent | e2ba7bd7d01e857a94538d3570da3caf14300a24 (diff) | |
download | gdb-15550d6bec38f2381fdf52210d2acfda840e0500.zip gdb-15550d6bec38f2381fdf52210d2acfda840e0500.tar.gz gdb-15550d6bec38f2381fdf52210d2acfda840e0500.tar.bz2 |
* linespec.c (decode_objc): Make i1 and i2 unsigned.
(find_method): Set values.sals to NULL.
Diffstat (limited to 'gdb/linespec.c')
-rw-r--r-- | gdb/linespec.c | 5 |
1 files changed, 3 insertions, 2 deletions
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; |