summaryrefslogtreecommitdiffstats
path: root/src/cli
diff options
context:
space:
mode:
authorMiroslav Lichvar <mlichvar@redhat.com>2011-04-19 15:52:34 +0200
committerMiroslav Lichvar <mlichvar@redhat.com>2011-05-05 17:16:00 +0200
commitafa3ecbd33fe6a6d13255255076ecc1ba90a9926 (patch)
tree782acc18ff4e83cf706a6ceb29a61317e4a13c68 /src/cli
parentfb0cd889c011a128a8d03ebeb52f43cd44f5b40e (diff)
downloadabrt-afa3ecbd33fe6a6d13255255076ecc1ba90a9926.tar.gz
abrt-afa3ecbd33fe6a6d13255255076ecc1ba90a9926.tar.xz
abrt-afa3ecbd33fe6a6d13255255076ecc1ba90a9926.zip
abrt-cli: fix crash when only one analyzer is available
Diffstat (limited to 'src/cli')
-rw-r--r--src/cli/report.c2
1 files changed, 1 insertions, 1 deletions
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"));