abrt/0046-bodhi-fix-a-segfault-when-testing-an-os-release-opt-.patch
Matej Habrnal 58ac8d6e9a bodhi: fix a segfault when testing an os-release opt for 'rawhide'
and actualize the abrt-bodhi man page

Signed-off-by: Matej Habrnal <mhabrnal@redhat.com>
2015-09-15 12:55:38 +02:00

30 lines
944 B
Diff

From afe242542e3c372a05de51a7259f417c1df058d2 Mon Sep 17 00:00:00 2001
From: Jakub Filak <jfilak@redhat.com>
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 <jfilak@redhat.com>
---
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