From: Bart Trojanowski Date: Tue, 24 Mar 2009 00:12:05 +0000 (-0400) Subject: fix a bug with shrink_urls() when ran on text that contains no urls X-Git-Url: https://git.toastfreeware.priv.at/gregoa/bti.git/commitdiff_plain/ae9c3fe1363f742e4288f75cb96daa3909b8e609?ds=sidebyside fix a bug with shrink_urls() when ran on text that contains no urls --- diff --git a/bti.c b/bti.c index 5f4a6cb..753870c 100644 --- a/bti.c +++ b/bti.c @@ -829,6 +829,8 @@ static char *shrink_urls(char *text) return text; rcount = find_urls(text, &ranges); + if (!rcount) + return text; for (i=0; i