Skip to content
This repository has been archived by the owner on Jul 4, 2021. It is now read-only.

Commit

Permalink
Fixed NULL dereference if first data plugin loaded fails to register …
Browse files Browse the repository at this point in the history
…anything.
  • Loading branch information
icculus committed Aug 7, 2008
1 parent fe80ab3 commit accacf3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gdb/printcmd.c
Expand Up @@ -336,7 +336,7 @@ dataplugin_command (char *arg, int from_tty)

entry(&dataplugin_entry_funcs);

new_count = htab_elements (dataplugin_htab);
new_count = dataplugin_htab ? htab_elements (dataplugin_htab) : 0;
gdb_assert(start_count <= new_count);
if (start_count < new_count)
{
Expand Down

0 comments on commit accacf3

Please sign in to comment.