1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

css: Skip empty urls.

This commit is contained in:
Giuseppe Scrivano 2010-08-06 17:07:17 +02:00
parent e6b486fd93
commit e6152f3265
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2010-08-06 Giuseppe Scrivano <gscrivano@gnu.org>
* css-url.c (get_uri_string): Skip empty urls.
2010-07-25 John Trengrove <jtrengrove@gmail.com> (tiny change)
* ftp.h: Added enum `parsetype'. Modified struct to hold parsetype.

View File

@ -124,9 +124,11 @@ get_uri_string (const char *at, int *pos, int *length)
/* skip leading space */
while (isspace (at[*pos]))
{
(*pos)++;
(*length)--;
(*pos)++;
if (--(*length) == 0)
return NULL;
}
/* skip trailing space */
while (isspace (at[*pos + *length - 1]))
{