From fb5bb459ff59e76eeae346a3de317afaed527193 Mon Sep 17 00:00:00 2001 From: Jakub Filak Date: Mon, 7 Sep 2015 10:23:30 +0200 Subject: [PATCH] bodhi: fix a segfault when testing an os-release opt for 'rawhide' Resolves: rhbz#1260259 Signed-off-by: Jakub Filak --- src/plugins/bodhi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/bodhi.c b/src/plugins/bodhi.c index b348a26..bbd88f7 100644 --- a/src/plugins/bodhi.c +++ b/src/plugins/bodhi.c @@ -513,7 +513,7 @@ int main(int argc, char **argv) parse_osinfo_for_rhts(osinfo, &product, &version); /* There are no bodhi updates for Rawhide */ - bool rawhide = strcasecmp(release, "rawhide") == 0; + bool rawhide = strcasecmp(version, "rawhide") == 0; if (!rawhide) query = strbuf_append_strf(query, "releases=f%s&", version); -- 2.5.0