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:
parent
e6b486fd93
commit
e6152f3265
@ -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.
|
||||
|
@ -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]))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user