mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
C ensures that static variables are initialized to 0
This commit is contained in:
parent
3acda85c2b
commit
99befd3a15
@ -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
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user