]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
initialized ret in _gnutls_writev_emu().
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Fri, 8 Apr 2011 10:47:12 +0000 (12:47 +0200)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Fri, 8 Apr 2011 10:47:12 +0000 (12:47 +0200)
lib/gnutls_buffers.c

index d10546020b0d37f2201e94546e45b749c9c0207e..7b24966bfa39f898562c5ee06623c7773eea8dbd 100644 (file)
@@ -322,7 +322,7 @@ static ssize_t
 _gnutls_writev_emu (gnutls_session_t session, gnutls_transport_ptr_t fd, const giovec_t * giovec,
                     int giovec_cnt)
 {
-  int ret, j = 0;
+  int ret = 0, j = 0;
   size_t total = 0;
 
   for (j = 0; j < giovec_cnt; j++)