1.1 --- a/librazor/razor.c Thu Oct 01 20:02:23 2009 +0100
1.2 +++ b/librazor/razor.c Wed Aug 24 15:27:50 2011 +0100
1.3 @@ -1,7 +1,7 @@
1.4 /*
1.5 * Copyright (C) 2008 Kristian Høgsberg <krh@redhat.com>
1.6 * Copyright (C) 2008 Red Hat, Inc
1.7 - * Copyright (C) 2009 J. Ali Harlow <ali@juiblex.co.uk>
1.8 + * Copyright (C) 2009, 2010 J. Ali Harlow <ali@juiblex.co.uk>
1.9 *
1.10 * This program is free software; you can redistribute it and/or modify
1.11 * it under the terms of the GNU General Public License as published by
1.12 @@ -426,18 +426,26 @@
1.13 return &pool[package->arch];
1.14
1.15 case RAZOR_DETAIL_SUMMARY:
1.16 + if (!set->details_string_pool.size)
1.17 + return "";
1.18 pool = set->details_string_pool.data;
1.19 return &pool[package->summary];
1.20
1.21 case RAZOR_DETAIL_DESCRIPTION:
1.22 + if (!set->details_string_pool.size)
1.23 + return "";
1.24 pool = set->details_string_pool.data;
1.25 return &pool[package->description];
1.26
1.27 case RAZOR_DETAIL_URL:
1.28 + if (!set->details_string_pool.size)
1.29 + return "";
1.30 pool = set->details_string_pool.data;
1.31 return &pool[package->url];
1.32
1.33 case RAZOR_DETAIL_LICENSE:
1.34 + if (!set->details_string_pool.size)
1.35 + return "";
1.36 pool = set->details_string_pool.data;
1.37 return &pool[package->license];
1.38