diff options
author | Daniel Stenberg <daniel@haxx.se> | 2001-01-08 07:37:44 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2001-01-08 07:37:44 +0000 |
commit | 14ca732a8ffce3649bb822ebbfab2f5998f085c0 (patch) | |
tree | 70a0e937c2d1770953148039ca2d9009b3e42411 /src/urlglob.c | |
parent | 53c27c7722b5579cf42bde69ea0e6649d2eaead3 (diff) |
Multiple URL support added
Diffstat (limited to 'src/urlglob.c')
-rw-r--r-- | src/urlglob.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/urlglob.c b/src/urlglob.c index 0f111a92a..509c34e70 100644 --- a/src/urlglob.c +++ b/src/urlglob.c @@ -213,6 +213,7 @@ int glob_url(URLGlob** glob, char* url, int *urlnum) glob_expand->size = 0; glob_expand->urllen = strlen(url); glob_expand->glob_buffer = glob_buffer; + glob_expand->beenhere=0; *urlnum = glob_word(glob_expand, url, 1); *glob = glob_expand; return CURLE_OK; @@ -240,15 +241,14 @@ void glob_cleanup(URLGlob* glob) char *next_url(URLGlob *glob) { - static int beenhere = 0; char *buf = glob->glob_buffer; URLPattern *pat; char *lit; signed int i; int carry; - if (!beenhere) - beenhere = 1; + if (!glob->beenhere) + glob->beenhere = 1; else { carry = 1; |