* linespec.c (decode_objc): Make i1 and i2 unsigned.

(find_method): Set values.sals to NULL.
This commit is contained in:
Mark Kettenis 2006-01-10 22:14:43 +00:00
parent e2ba7bd7d0
commit 15550d6bec
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2006-01-10 Mark Kettenis <kettenis@gnu.org>
* linespec.c (decode_objc): Make i1 and i2 unsigned.
(find_method): Set values.sals to NULL.
2006-01-09 Mark Kettenis <kettenis@gnu.org>
* amd64obsd-nat.c (amd64obsd_supply_pcb): Use 'gdb_byte *' instead

View File

@ -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;