From: Philipp Stephani Date: Sat, 20 May 2017 14:57:58 +0000 (+0200) Subject: Avoid uninitialized read X-Git-Tag: emacs-26.0.90~521^2~312 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=6f1f88224c62dfb7b311dc1a57db267d118cae5c;p=emacs.git Avoid uninitialized read * src/nsterm.m (ns_read_socket): Don't read uninitialized variable 'nevents'. --- diff --git a/src/nsterm.m b/src/nsterm.m index c8320130a87..e69aa43dd37 100644 --- a/src/nsterm.m +++ b/src/nsterm.m @@ -4261,6 +4261,8 @@ ns_read_socket (struct terminal *terminal, struct input_event *hold_quit) q_event_ptr = NULL; unblock_input (); } + else + return -1; return nevents; }