diff -r 297c6c8be2d1 -r 75dd38e0b472 librazor/razor.c --- a/librazor/razor.c Thu Oct 01 20:02:23 2009 +0100 +++ b/librazor/razor.c Thu Aug 25 14:22:52 2011 +0100 @@ -1,7 +1,7 @@ /* * Copyright (C) 2008 Kristian Høgsberg * Copyright (C) 2008 Red Hat, Inc - * Copyright (C) 2009 J. Ali Harlow + * Copyright (C) 2009, 2010 J. Ali Harlow * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -426,18 +426,26 @@ return &pool[package->arch]; case RAZOR_DETAIL_SUMMARY: + if (!set->details_string_pool.size) + return ""; pool = set->details_string_pool.data; return &pool[package->summary]; case RAZOR_DETAIL_DESCRIPTION: + if (!set->details_string_pool.size) + return ""; pool = set->details_string_pool.data; return &pool[package->description]; case RAZOR_DETAIL_URL: + if (!set->details_string_pool.size) + return ""; pool = set->details_string_pool.data; return &pool[package->url]; case RAZOR_DETAIL_LICENSE: + if (!set->details_string_pool.size) + return ""; pool = set->details_string_pool.data; return &pool[package->license];