summaryrefslogtreecommitdiff
path: root/gdb/linespec.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2006-01-10 22:14:43 +0000
committerMark Kettenis <kettenis@gnu.org>2006-01-10 22:14:43 +0000
commit361371b820374fa70d466900959f0eda57800392 (patch)
tree585e1909f7be1a284d04ea76b221ea73a09584c0 /gdb/linespec.c
parent7b2ec2ab0f96001afb0d8e965bb233ccb5e7196c (diff)
downloadgdb-361371b820374fa70d466900959f0eda57800392.tar.gz
* 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.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/linespec.c b/gdb/linespec.c
index 77758fd7b6e..fad5e316634 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;