diff options
Diffstat (limited to 'gdb/cli')
-rw-r--r-- | gdb/cli/cli-cmds.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/cli/cli-cmds.c b/gdb/cli/cli-cmds.c index 41001e9ed31..c1c5f7b747e 100644 --- a/gdb/cli/cli-cmds.c +++ b/gdb/cli/cli-cmds.c @@ -542,7 +542,7 @@ apropos_command (char *searchstr, int from_tty) regex_t pattern; char *pattern_fastmap; char errorbuffer[512]; - pattern_fastmap=calloc(256,sizeof(char)); + pattern_fastmap = xcalloc (256, sizeof (char)); if (searchstr == NULL) error("REGEXP string is empty"); |