]> granicus.if.org Git - curl/commitdiff
C ensures that static variables are initialized to 0
authorDan Fandrich <dan@coneharvesters.com>
Wed, 22 Dec 2004 20:12:15 +0000 (20:12 +0000)
committerDan Fandrich <dan@coneharvesters.com>
Wed, 22 Dec 2004 20:12:15 +0000 (20:12 +0000)
lib/easy.c
lib/formdata.c

index 69ec6279fd9238551215bdba5d824cbc54e578d7..0b37748236a6bc9115a51d5901b53d2b574bbaa6 100644 (file)
@@ -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
index 4f0845c3fb7ed8f6a783544d4331ec6e7e05d1bb..1d11bc939904bdadc2be2147da88ccd925c7f7c6 100644 (file)
@@ -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;