diff options
author | Dan Fandrich <dan@coneharvesters.com> | 2004-12-22 20:12:15 +0000 |
---|---|---|
committer | Dan Fandrich <dan@coneharvesters.com> | 2004-12-22 20:12:15 +0000 |
commit | 99befd3a155369280236b918dcf2739e599b5eaa (patch) | |
tree | 476c425301b4214a471cfba2b60116fa31df22f2 /lib | |
parent | 3acda85c2b11f24c594e81c340509bda8db5eed1 (diff) |
C ensures that static variables are initialized to 0
Diffstat (limited to 'lib')
-rw-r--r-- | lib/easy.c | 4 | ||||
-rw-r--r-- | lib/formdata.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/easy.c b/lib/easy.c index 69ec6279f..0b3774823 100644 --- a/lib/easy.c +++ b/lib/easy.c @@ -165,8 +165,8 @@ static void idna_init (void) #endif /* USE_LIBIDN */ /* true globals -- for curl_global_init() and curl_global_cleanup() */ -static unsigned int initialized = 0; -static long init_flags = 0; +static unsigned int initialized; +static long init_flags; /* * If a memory-using function (like curl_getenv) is used before diff --git a/lib/formdata.c b/lib/formdata.c index 4f0845c3f..1d11bc939 100644 --- a/lib/formdata.c +++ b/lib/formdata.c @@ -1539,7 +1539,7 @@ void curl_formfree(struct curl_httppost *form) char *Curl_FormBoundary(void) { char *retstring; - static int randomizer=0; /* this is just so that two boundaries within + static int randomizer; /* this is just so that two boundaries within the same form won't be identical */ size_t i; |