diff options
author | Lauri Aalto <laalto@iki.fi> | 2007-11-12 13:17:15 +0000 |
---|---|---|
committer | Lauri Aalto <laalto@iki.fi> | 2007-11-12 13:17:15 +0000 |
commit | d139a7551a7996a20848d0fdefdd4f50f442769d (patch) | |
tree | 6d61482d361d3921677b2d322efb353ca0a82dff /src/raptor_www.c | |
parent | 4cb55ed4afc1bdc1beafb01d0fac2744b7e98ff2 (diff) | |
download | raptor-d139a7551a7996a20848d0fdefdd4f50f442769d.tar.gz |
(raptor_www_init) Pull static initialized flag from function scope to unit scope.
Diffstat (limited to 'src/raptor_www.c')
-rw-r--r-- | src/raptor_www.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/raptor_www.c b/src/raptor_www.c index 53d253f3..c64aa057 100644 --- a/src/raptor_www.c +++ b/src/raptor_www.c @@ -53,6 +53,8 @@ static int raptor_www_file_fetch(raptor_www* www); /* should raptor_www do initializing and cleanup of the WWW library */ static int raptor_www_do_www_init_finish=1; +static int raptor_www_initialized=0; + /** * raptor_www_init: @@ -64,8 +66,7 @@ static int raptor_www_do_www_init_finish=1; void raptor_www_init(void) { - static int initialized=0; - if(initialized) + if(raptor_www_initialized) return; if(raptor_www_do_www_init_finish) { @@ -73,7 +74,7 @@ raptor_www_init(void) curl_global_init(CURL_GLOBAL_ALL); #endif } - initialized=1; + raptor_www_initialized=1; } |