From afa3ecbd33fe6a6d13255255076ecc1ba90a9926 Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Tue, 19 Apr 2011 15:52:34 +0200 Subject: abrt-cli: fix crash when only one analyzer is available --- src/cli/report.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/cli/report.c b/src/cli/report.c index 72e9c4a6..989fb0f5 100644 --- a/src/cli/report.c +++ b/src/cli/report.c @@ -611,7 +611,7 @@ char *select_event_option(GList *list_options) unsigned count = g_list_length(list_options) - 1; if (!count) - return NULL; + return xstrdup((char*)list_options->data); int pos = -1; fprintf(stdout, _("Select how you would like to analyze the problem:\n")); -- cgit