From 3fcd56a1a13c98ebff2dfcdb5354829f26beb00a Mon Sep 17 00:00:00 2001 From: "psyc://psyced.org/~lynX" <@> Date: Wed, 22 Apr 2009 06:25:04 +0200 Subject: [PATCH] + --- world/net/twitter/polly.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/world/net/twitter/polly.c b/world/net/twitter/polly.c index 2babff4..4d4b6e6 100644 --- a/world/net/twitter/polly.c +++ b/world/net/twitter/polly.c @@ -31,6 +31,10 @@ parse(string body, mapping headers) { P1(("%O failed to parse its timeline.\n", ME)) return; } + unless (sizeof(wurst)) { + P1(("%O received an empty structure.\n", ME)) + return; + } if (wurst[0]["id"] <= lastid) { P1(("%O received %d old updates.\n", ME, sizeof(wurst))) return;