Commit c8926152 authored by Paul Eggert's avatar Paul Eggert
Browse files

* gnutls.c (emacs_gnutls_write): Don't use uninitialized rtnval if nbyte <= 0.

parent 8d4c3955
......@@ -8,6 +8,7 @@
(emacs_gnutls_handle_error): Remove unused local.
(Fgnutls_boot): gnutls_certificate_verify_peers2 wants unsigned *.
Remove unused local.
(emacs_gnutls_write): Don't use uninitialized rtnval if nbyte <= 0.
lisp.h: Fix a problem with aliasing and vector headers.
GCC 4.6.0 optimizes based on type-based alias analysis. For
......
......@@ -130,7 +130,7 @@ EMACS_INT
emacs_gnutls_write (int fildes, struct Lisp_Process *proc, const char *buf,
EMACS_INT nbyte)
{
ssize_t rtnval;
ssize_t rtnval = 0;
EMACS_INT bytes_written;
gnutls_session_t state = proc->gnutls_state;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment