Fix thinko on last commit
authorSergio Durigan Junior <sergiodj@redhat.com>
Mon, 20 Feb 2017 13:01:04 +0000 (08:01 -0500)
committerSergio Durigan Junior <sergiodj@redhat.com>
Mon, 20 Feb 2017 13:03:13 +0000 (08:03 -0500)
On fork-child.c:trace_start_error, va_end should refer to 'ap', not
'args.  This fixes it.

Sorry about the breakage.

gdb/ChangeLog:
2017-02-20  Sergio Durigan Junior  <sergiodj@redhat.com>

PR gdb/16188
* fork-child.c (trace_start_error): Fix thinko.  va_end should
refer to 'ap', not 'args'.

gdb/ChangeLog
gdb/fork-child.c

index cf68c7e78c065ca78c3951e1000d0ee09bb65938..610755cfe7d857f980a9ea3f0eb8dd8cc4c1eba3 100644 (file)
@@ -1,3 +1,9 @@
+2017-02-20  Sergio Durigan Junior  <sergiodj@redhat.com>
+
+       PR gdb/16188
+       * fork-child.c (trace_start_error): Fix thinko.  va_end should
+       refer to 'ap', not 'args'.
+
 2017-02-20  Sergio Durigan Junior  <sergiodj@redhat.com>
            Pedro Alves  <palves@redhat.com>
 
index f6256fb01ad59fb940fca775d1f5a4d9fa90c3d0..dc2a314edf06dc9ee39c48f4b70360c24709998d 100644 (file)
@@ -120,7 +120,7 @@ trace_start_error (const char *fmt, ...)
   fprintf_unfiltered (gdb_stderr, "Could not trace the inferior "
                                  "process.\nError: ");
   vfprintf_unfiltered (gdb_stderr, fmt, ap);
-  va_end (args);
+  va_end (ap);
 
   gdb_flush (gdb_stderr);
   _exit (0177);