summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Jones <admin@danieljon.es>2020-01-19 02:19:02 +1030
committerDaniel Jones <admin@danieljon.es>2020-01-19 02:19:02 +1030
commit060538b2a8d7ea81c13331d1b01f678092b4bb37 (patch)
tree6d75472aeb83a95774b3279a38cb31ff7935280a
parent9fcf5c7cd244c535467151661aa7bef95bfe7eaf (diff)
downloadwebsitegenerator-060538b2a8d7ea81c13331d1b01f678092b4bb37.tar.gz
websitegenerator-060538b2a8d7ea81c13331d1b01f678092b4bb37.zip
rss: check for images earlier
-rw-r--r--pages.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/pages.c b/pages.c
index 9d4e06a..b84caac 100644
--- a/pages.c
+++ b/pages.c
@@ -846,14 +846,11 @@ writerss(FILE *out, int post)
fclose(in);
return 0;
}
- else if (pos == 3)
+ else if (pos >= 3)
{
strncpy(description, line, 100);
- }
- /* try to find images */
- else if (pos > 3)
- {
+ /* try to find images */
char *img;
if ((img = strstr(line, "<img")))
{