mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-12-26 04:17:33 +00:00
fix compilation error due to initial declaration in for loop being not compliant with C99
This commit is contained in:
parent
0cd29676c0
commit
4d35595e5e
@ -48,7 +48,9 @@ void prss_parse_data(void *result, const char *xml_data)
|
||||
|
||||
void free_rss_items(PRSS *data)
|
||||
{
|
||||
for (int i = 0; i < data->item_count; i++) {
|
||||
int i;
|
||||
|
||||
for (i = 0; i < data->item_count; i++) {
|
||||
#define CLEAR(a) if (data->items[i].a) { free(data->items[i].a); data->items[i].a = 0; }
|
||||
CLEAR(title);
|
||||
CLEAR(link);
|
||||
|
Loading…
Reference in New Issue
Block a user