forked from Imagelibrary/binutils-gdb
* cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
2012-08-22 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
* cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
|
||||
|
||||
2012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
|
||||
|
||||
* symfile.c (allocate_symtab): Use host_address_to_string
|
||||
|
||||
@@ -1534,13 +1534,14 @@ filter_sals (struct symtabs_and_lines *sals)
|
||||
++out;
|
||||
}
|
||||
}
|
||||
sals->nelts = out;
|
||||
|
||||
if (sals->nelts == 0)
|
||||
{
|
||||
xfree (sals->sals);
|
||||
sals->sals = NULL;
|
||||
}
|
||||
else
|
||||
sals->nelts = out;
|
||||
}
|
||||
|
||||
static void
|
||||
|
||||
Reference in New Issue
Block a user