bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

src/gdb/remote.c:7724: missing use of va_end ?


From: David Binderman
Subject: src/gdb/remote.c:7724: missing use of va_end ?
Date: Mon, 9 Nov 2015 22:47:12 +0000

Hello there,

[src/gdb/remote.c:7724]: (error) va_list 'ap' was opened but not closed by 
va_end().

Source code is

  va_start (ap, format);

  rs->buf[0] = '\0';
  if (vsnprintf (rs->buf, max_size, format, ap)>= max_size)
    internal_error (__FILE__, __LINE__, _("Too long remote packet."));

  if (putpkt (rs->buf) < 0)
    error (_("Communication problem with target."));

  rs->buf[0] = '\0';
  getpkt (&rs->buf, &rs->buf_size, 0);

  return packet_check_result (rs->buf);

Regards

David Binderman

                                          


reply via email to

[Prev in Thread] Current Thread [Next in Thread]